/third_party/flutter/skia/gm/ |
D | drawquadset.cpp | 34 static constexpr SkScalar kTileWidth = 40; variable 46 static constexpr SkPoint pts[] = { {0.f, 0.f}, {0.25f * kTileWidth, 0.25f * kTileHeight} }; in draw_gradient_tiles() 59 SkRect tile = SkRect::MakeWH(kTileWidth, kTileHeight); in draw_gradient_tiles() 61 tile.offset(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 64 canvas->translate(j * kTileWidth, i * kTileHeight); in draw_gradient_tiles() 109 … SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, kTileWidth, kTileHeight); in draw_color_tiles() 148 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 155 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 196 SkRect::MakeWH(kColCount * kTileWidth, kRowCount * kTileHeight).toQuad(src); in onDraw() 198 {kColCount * kTileWidth + 10.f, 15.f}, in onDraw() [all …]
|
D | compositor_quads.cpp | 53 static constexpr SkScalar kTileWidth = 40; variable 62 static constexpr SkPoint kClipP1 = {1.75f * kTileWidth, 0.8f * kTileHeight}; 63 static constexpr SkPoint kClipP2 = {0.6f * kTileWidth, 2.f * kTileHeight}; 64 static constexpr SkPoint kClipP3 = {2.9f * kTileWidth, 3.5f * kTileHeight}; 151 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 155 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 169 SkRect border = SkRect::MakeWH(kTileWidth * kColCount, kTileHeight * kRowCount); in draw_clipping_boundaries() 228 SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, in drawTiles() 229 kTileWidth, kTileHeight); in drawTiles() 434 static constexpr SkScalar kCellWidth = 1.3f * kColCount * kTileWidth; in onISize() [all …]
|
D | filterfastbounds.cpp | 163 static constexpr int kTileWidth = 100; member in skiagm::ImageFilterFastBoundGM 171 return SkISize::Make((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols) * kTileWidth, in onISize() 285 SkIntToScalar((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols)*kTileWidth), in onDraw() 291 canvas->drawLine(SkIntToScalar(i * kTileWidth), in onDraw() 293 SkIntToScalar(i * kTileWidth), in onDraw() 294 SkIntToScalar(paints.count() * kTileWidth), in onDraw() 306 draw_savelayer_with_paint(SkIPoint::Make(kTileWidth, i*kTileHeight), in onDraw() 314 SkIPoint::Make((i+kNumXtraCols) * kTileWidth, j*kTileHeight), in onDraw()
|
D | multipicturedraw.cpp | 408 const int kTileWidth = kPicWidth / kNumTilesX; in tiled() local 411 SkASSERT(kPicWidth == kNumTilesX * kTileWidth); in tiled() 423 step.fX = SkIntToScalar(x*kTileWidth); in tiled() 429 step.fSurf = create_compat_surface(finalCanvas, kTileWidth, kTileHeight); in tiled() 433 const SkMatrix trans = SkMatrix::MakeTrans(-SkIntToScalar(x*kTileWidth), in tiled()
|
/third_party/skia/gm/ |
D | drawquadset.cpp | 36 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 …]
|
D | compositor_quads.cpp | 55 static constexpr SkScalar kTileWidth = 40; variable 64 static constexpr SkPoint kClipP1 = {1.75f * kTileWidth, 0.8f * kTileHeight}; 65 static constexpr SkPoint kClipP2 = {0.6f * kTileWidth, 2.f * kTileHeight}; 66 static constexpr SkPoint kClipP3 = {2.9f * kTileWidth, 3.5f * kTileHeight}; 153 SkPoint pts[] = {{x * kTileWidth, 0}, {x * kTileWidth, kRowCount * kTileHeight}}; in draw_tile_boundaries() 157 SkPoint pts[] = {{0, y * kTileHeight}, {kTileWidth * kColCount, y * kTileHeight}}; in draw_tile_boundaries() 171 SkRect border = SkRect::MakeWH(kTileWidth * kColCount, kTileHeight * kRowCount); in draw_clipping_boundaries() 229 SkRect tile = SkRect::MakeXYWH(j * kTileWidth, i * kTileHeight, in drawTiles() 230 kTileWidth, kTileHeight); in drawTiles() 434 static constexpr SkScalar kCellWidth = 1.3f * kColCount * kTileWidth; in onISize() [all …]
|
D | filterfastbounds.cpp | 160 inline static constexpr int kTileWidth = 100; member in skiagm::ImageFilterFastBoundGM 168 return SkISize::Make((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols) * kTileWidth, in onISize() 282 SkIntToScalar((SK_ARRAY_COUNT(gDrawMthds) + kNumXtraCols)*kTileWidth), in onDraw() 288 canvas->drawLine(SkIntToScalar(i * kTileWidth), in onDraw() 290 SkIntToScalar(i * kTileWidth), in onDraw() 291 SkIntToScalar(paints.count() * kTileWidth), in onDraw() 303 draw_savelayer_with_paint(SkIPoint::Make(kTileWidth, i*kTileHeight), in onDraw() 311 SkIPoint::Make((i+kNumXtraCols) * kTileWidth, j*kTileHeight), in onDraw()
|
/third_party/skia/samplecode/ |
D | SampleThinAA.cpp | 21 inline 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 …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleThinAA.cpp | 21 static constexpr SkScalar kTileWidth = 20.f; member in skiagm::ShapeRenderer 39 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f); in applyLocalTransform() 61 canvas->drawRect(SkRect::MakeLTRB(kTileWidth / 2.f - width / 2.f, 2.f, in draw() 62 kTileWidth / 2.f + width / 2.f, kTileHeight - 2.f), in draw() 110 path.moveTo(kTileWidth / 2.f, 2.f); in draw() 113 path.quadTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f, in draw() 114 kTileWidth / 2.f, kTileHeight - 2.f); in draw() 117 path.lineTo(kTileWidth / 2.f + fDepth, kTileHeight / 2.f); in draw() 119 path.lineTo(kTileWidth / 2.f, kTileHeight - 2.f); in draw() 189 auto info = SkImageInfo::Make(fSupersampleFactor * kTileWidth, in prepareBuffer() [all …]
|
/third_party/skia/third_party/externals/angle2/samples/multiple_contexts/ |
D | MultipleContexts.cpp | 208 constexpr size_t kTileWidth = kWindowWidth / kNumCols; in draw() local 217 GLfloat tileX1 = tileX0 + static_cast<float>(kTileWidth) / static_cast<float>(kWindowWidth); in draw()
|