Home
last modified time | relevance | path

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

/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/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()
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()
180 {kColCount * kTileWidth + 10.f, 15.f}, in onDraw()
[all …]
Dcompositor_quads.cpp34 static constexpr SkScalar kTileWidth = 40; 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()
441 static constexpr SkScalar kCellWidth = 1.3f * kColCount * kTileWidth; in onISize()
[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.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 …]
/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 …]