Home
last modified time | relevance | path

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

/external/skia/gm/
Ddrawquadset.cpp36 static constexpr SkScalar kTileWidth = 40; 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()
202 {kColCount * kTileWidth + 10.f, 15.f}, in onDraw()
[all …]
Dcompositor_quads.cpp56 static constexpr SkScalar kTileWidth = 40; 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()
435 static constexpr SkScalar kCellWidth = 1.3f * kColCount * kTileWidth; in onISize()
[all …]
Dfilterfastbounds.cpp161 static constexpr int kTileWidth = 100; member in skiagm::ImageFilterFastBoundGM
169 return SkISize::Make((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols) * kTileWidth, in onISize()
283 SkIntToScalar((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols)*kTileWidth), in onDraw()
289 canvas->drawLine(SkIntToScalar(i * kTileWidth), in onDraw()
291 SkIntToScalar(i * kTileWidth), in onDraw()
292 SkIntToScalar(paints.count() * kTileWidth), 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.cpp17 static constexpr SkScalar kTileWidth = 40; 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()
179 {kColCount * kTileWidth + 10.f, 15.f}, in onDraw()
[all …]
Dfilterfastbounds.cpp158 static constexpr int kTileWidth = 100; member in skiagm::ImageFilterFastBoundGM
166 return SkISize::Make((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols) * kTileWidth, in onISize()
280 SkIntToScalar((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols)*kTileWidth), in onDraw()
286 canvas->drawLine(SkIntToScalar(i * kTileWidth), in onDraw()
288 SkIntToScalar(i * kTileWidth), in onDraw()
289 SkIntToScalar(paints.count() * kTileWidth), 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.cpp393 const int kTileWidth = kPicWidth / kNumTilesX; in tiled() local
396 SkASSERT(kPicWidth == kNumTilesX * kTileWidth); in tiled()
408 step.fX = SkIntToScalar(x*kTileWidth); in tiled()
414 step.fSurf = create_compat_surface(finalCanvas, kTileWidth, kTileHeight); in tiled()
418 const SkMatrix trans = SkMatrix::MakeTrans(-SkIntToScalar(x*kTileWidth), in tiled()
/external/skia/samplecode/
DSampleThinAA.cpp21 static constexpr SkScalar kTileWidth = 20.f; member in skiagm::ShapeRenderer
37 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform()
59 canvas->drawRect(SkRect::MakeLTRB(kTileWidth / 2.f - width / 2.f, 2.f, in draw()
60 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw()
108 path.moveTo(kTileWidth / 2.f, 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()
187 auto info = SkImageInfo::Make(fSupersampleFactor * kTileWidth, in prepareBuffer()
[all …]
/external/skqp/samplecode/
DSampleThinAA.cpp22 static constexpr SkScalar kTileWidth = 20.f; member in skiagm::ShapeRenderer
40 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform()
62 canvas->drawRect(SkRect::MakeLTRB(kTileWidth / 2.f - width / 2.f, 2.f, in draw()
63 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw()
111 path.moveTo(kTileWidth / 2.f, 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()
190 auto info = SkImageInfo::Make(fSupersampleFactor * kTileWidth, in prepareBuffer()
[all …]