Home
last modified time | relevance | path

Searched refs:kTileHeight (Results 1 – 8 of 8) sorted by relevance

/external/skia/gm/
Ddrawquadset.cpp37 static constexpr SkScalar kTileHeight = 30; variable
49 static constexpr SkPoint pts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in draw_gradient_tiles()
62 SkRect tile = SkRect::MakeWH(kTileWidth, kTileHeight); in draw_gradient_tiles()
64 tile.offset(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles()
67 canvas->translate(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles()
113 … SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, kTileWidth, kTileHeight); in draw_color_tiles()
152 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries()
159 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries()
200 SkRect::MakeWH(kColCount * kTileWidth, kRowCount * kTileHeight).toQuad(src); in onDraw()
203 {kColCount * kTileWidth - 28.f, kRowCount * kTileHeight + 40.f}, in onDraw()
[all …]
Dcompositor_quads.cpp57 static constexpr SkScalar kTileHeight = 30; variable
65 static constexpr SkPoint kClipP1 = {1.75f * kTileWidth, 0.8f * kTileHeight};
66 static constexpr SkPoint kClipP2 = {0.6f * kTileWidth, 2.f * kTileHeight};
67 static constexpr SkPoint kClipP3 = {2.9f * kTileWidth, 3.5f * kTileHeight};
154 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries()
158 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries()
172 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()
436 static constexpr SkScalar kCellHeight = 1.3f * kRowCount * kTileHeight; in onISize()
[all …]
Dfilterfastbounds.cpp162 static constexpr int kTileHeight = 100; member in skiagm::ImageFilterFastBoundGM
170 kNumVertTiles * kTileHeight); in onISize()
282 i*SkIntToScalar(kTileHeight), in onDraw()
284 i*SkIntToScalar(kTileHeight), in onDraw()
298 draw_savelayer_with_paint(SkIPoint::Make(0, i*kTileHeight), in onDraw()
304 draw_savelayer_with_paint(SkIPoint::Make(kTileWidth, i*kTileHeight), in onDraw()
312 SkIPoint::Make((i+kNumXtraCols) * kTileWidth, j*kTileHeight), in onDraw()
/external/skqp/gm/
Ddrawquadset.cpp18 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 …]
Dfilterfastbounds.cpp159 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()
Dmultipicturedraw.cpp394 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/
DSampleThinAA.cpp22 static constexpr SkScalar kTileHeight = 20.f; member in skiagm::ShapeRenderer
37 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform()
60 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw()
111 path.quadTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f, in draw()
112 kTileWidth / 2.f, kTileHeight - 2.f); in draw()
115 path.lineTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f); in draw()
117 path.lineTo(kTileWidth / 2.f, kTileHeight - 2.f); in draw()
188 fSupersampleFactor * kTileHeight, in prepareBuffer()
225 SkRect::MakeWH(kTileWidth, kTileHeight), in redraw()
226 SkRect::MakeWH(kTileWidth, kTileHeight), in redraw()
[all …]
/external/skqp/samplecode/
DSampleThinAA.cpp23 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 …]