/external/skqp/gm/ |
D | drawquadset.cpp | 18 static constexpr SkScalar kTileHeight = 30; variable 29 static constexpr SkPoint pts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in draw_gradient_tiles() 40 SkRect tile = SkRect::MakeWH(kTileWidth, kTileHeight); in draw_gradient_tiles() 42 tile.offset(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 45 canvas->translate(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 90 … SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, kTileWidth, kTileHeight); in draw_color_tiles() 129 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 136 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 177 SkRect::MakeWH(kColCount * kTileWidth, kRowCount * kTileHeight).toQuad(src); in onDraw() 180 {kColCount * kTileWidth - 28.f, kRowCount * kTileHeight + 40.f}, in onDraw() [all …]
|
D | filterfastbounds.cpp | 159 static constexpr int kTileHeight = 100; member in skiagm::ImageFilterFastBoundGM 167 kNumVertTiles * kTileHeight); in onISize() 279 i*SkIntToScalar(kTileHeight), in onDraw() 281 i*SkIntToScalar(kTileHeight), in onDraw() 295 draw_savelayer_with_paint(SkIPoint::Make(0, i*kTileHeight), in onDraw() 301 draw_savelayer_with_paint(SkIPoint::Make(kTileWidth, i*kTileHeight), in onDraw() 309 SkIPoint::Make((i+kNumXtraCols) * kTileWidth, j*kTileHeight), in onDraw()
|
D | multipicturedraw.cpp | 394 const int kTileHeight = kPicHeight / kNumTilesY; in tiled() local 397 SkASSERT(kPicHeight == kNumTilesY * kTileHeight); in tiled() 409 step.fY = SkIntToScalar(y*kTileHeight); in tiled() 414 step.fSurf = create_compat_surface(finalCanvas, kTileWidth, kTileHeight); in tiled() 419 -SkIntToScalar(y*kTileHeight)); in tiled()
|
/external/skia/gm/ |
D | drawquadset.cpp | 18 static constexpr SkScalar kTileHeight = 30; variable 29 static constexpr SkPoint pts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in draw_gradient_tiles() 42 SkRect tile = SkRect::MakeWH(kTileWidth, kTileHeight); in draw_gradient_tiles() 44 tile.offset(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 47 canvas->translate(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 91 … SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, kTileWidth, kTileHeight); in draw_color_tiles() 130 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 137 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 178 SkRect::MakeWH(kColCount * kTileWidth, kRowCount * kTileHeight).toQuad(src); in onDraw() 181 {kColCount * kTileWidth - 28.f, kRowCount * kTileHeight + 40.f}, in onDraw() [all …]
|
D | compositor_quads.cpp | 35 static constexpr SkScalar kTileHeight = 30; variable 43 static constexpr SkPoint kClipP1 = {1.75f * kTileWidth, 0.8f * kTileHeight}; 44 static constexpr SkPoint kClipP2 = {0.6f * kTileWidth, 2.f * kTileHeight}; 45 static constexpr SkPoint kClipP3 = {2.9f * kTileWidth, 3.5f * kTileHeight}; 132 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 136 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 150 SkRect border = SkRect::MakeWH(kTileWidth * kColCount, kTileHeight * kRowCount); in draw_clipping_boundaries() 230 SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, in drawTiles() 231 kTileWidth, kTileHeight); in drawTiles() 442 static constexpr SkScalar kCellHeight = 1.3f * kRowCount * kTileHeight; in onISize() [all …]
|
D | filterfastbounds.cpp | 159 static constexpr int kTileHeight = 100; member in skiagm::ImageFilterFastBoundGM 167 kNumVertTiles * kTileHeight); in onISize() 279 i*SkIntToScalar(kTileHeight), in onDraw() 281 i*SkIntToScalar(kTileHeight), in onDraw() 295 draw_savelayer_with_paint(SkIPoint::Make(0, i*kTileHeight), in onDraw() 301 draw_savelayer_with_paint(SkIPoint::Make(kTileWidth, i*kTileHeight), in onDraw() 309 SkIPoint::Make((i+kNumXtraCols) * kTileWidth, j*kTileHeight), in onDraw()
|
D | multipicturedraw.cpp | 394 const int kTileHeight = kPicHeight / kNumTilesY; in tiled() local 397 SkASSERT(kPicHeight == kNumTilesY * kTileHeight); in tiled() 409 step.fY = SkIntToScalar(y*kTileHeight); in tiled() 414 step.fSurf = create_compat_surface(finalCanvas, kTileWidth, kTileHeight); in tiled() 419 -SkIntToScalar(y*kTileHeight)); in tiled()
|
/external/skia/samplecode/ |
D | SampleThinAA.cpp | 23 static constexpr SkScalar kTileHeight = 20.f; member in skiagm::ShapeRenderer 40 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform() 63 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw() 114 path.quadTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f, in draw() 115 kTileWidth / 2.f, kTileHeight - 2.f); in draw() 118 path.lineTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f); in draw() 120 path.lineTo(kTileWidth / 2.f, kTileHeight - 2.f); in draw() 191 fSupersampleFactor * kTileHeight, in prepareBuffer() 228 canvas->drawImageRect(fLastRendered, SkRect::MakeWH(kTileWidth, kTileHeight), &blit); in redraw() 480 ShapeRenderer::kTileHeight); in drawShape() [all …]
|
/external/skqp/samplecode/ |
D | SampleThinAA.cpp | 23 static constexpr SkScalar kTileHeight = 20.f; member in skiagm::ShapeRenderer 40 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform() 63 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw() 114 path.quadTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f, in draw() 115 kTileWidth / 2.f, kTileHeight - 2.f); in draw() 118 path.lineTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f); in draw() 120 path.lineTo(kTileWidth / 2.f, kTileHeight - 2.f); in draw() 191 fSupersampleFactor * kTileHeight, in prepareBuffer() 228 canvas->drawImageRect(fLastRendered, SkRect::MakeWH(kTileWidth, kTileHeight), &blit); in redraw() 480 ShapeRenderer::kTileHeight); in drawShape() [all …]
|