/third_party/flutter/skia/gm/ |
D | shapes.cpp | 43 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw() 46 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw() 49 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw() 52 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw() 55 fSimpleShapeCount = fShapes.count(); in onOnceBeforeDraw() 57 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw() 60 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw() 63 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw() 67 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw() 71 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw() [all …]
|
/third_party/skia/gm/ |
D | shapes.cpp | 43 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw() 46 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw() 49 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw() 52 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw() 55 fSimpleShapeCount = fShapes.count(); in onOnceBeforeDraw() 57 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw() 60 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw() 63 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw() 67 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw() 71 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw() [all …]
|
/third_party/skia/bench/ |
D | ShapesBench.cpp | 151 fShapes.push_back_n(fNumShapes); in onDelayedSetup() 155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup() 157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup() 159 fShapes[i].fMatrix.setPerspX(0.00015f); in onDelayedSetup() 160 fShapes[i].fMatrix.setPerspY(-0.00015f); in onDelayedSetup() 162 fShapes[i].fColor = rand.nextU() | 0xff808080; in onDelayedSetup() 180 fShapes[i].fDraw = bind(&SkCanvas::drawRect, _1, cref(fRect.rect()), _2); in onDelayedSetup() 183 fShapes[i].fDraw = bind(&SkCanvas::drawOval, _1, cref(fOval.rect()), _2); in onDelayedSetup() 186 fShapes[i].fDraw = bind(&SkCanvas::drawRRect, _1, cref(fRRect), _2); in onDelayedSetup() 202 fShapes[i].fDraw = std::bind(&SkCanvas::drawDRRect, std::placeholders::_1, in onDelayedSetup() [all …]
|
/third_party/flutter/skia/bench/ |
D | ShapesBench.cpp | 151 fShapes.push_back_n(fNumShapes); in onDelayedSetup() 155 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup() 157 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup() 159 fShapes[i].fMatrix.setPerspX(0.00015f); in onDelayedSetup() 160 fShapes[i].fMatrix.setPerspY(-0.00015f); in onDelayedSetup() 162 fShapes[i].fColor = rand.nextU() | 0xff808080; in onDelayedSetup() 180 fShapes[i].fDraw = bind(&SkCanvas::drawRect, _1, cref(fRect.rect()), _2); in onDelayedSetup() 183 fShapes[i].fDraw = bind(&SkCanvas::drawOval, _1, cref(fOval.rect()), _2); in onDelayedSetup() 186 fShapes[i].fDraw = bind(&SkCanvas::drawRRect, _1, cref(fRRect), _2); in onDelayedSetup() 202 fShapes[i].fDraw = std::bind(&SkCanvas::drawDRRect, std::placeholders::_1, in onDelayedSetup() [all …]
|
/third_party/skia/samplecode/ |
D | SampleThinAA.cpp | 258 fShapes.push_back(RectRenderer::Make()); in onOnceBeforeDraw() 259 fShapes.push_back(PathRenderer::MakeLine()); in onOnceBeforeDraw() 260 fShapes.push_back(PathRenderer::MakeLines(4.f)); // 2 segments in onOnceBeforeDraw() 261 fShapes.push_back(PathRenderer::MakeCurve(2.f)); // Shallow curve in onOnceBeforeDraw() 262 fShapes.push_back(PathRenderer::MakeCurve(8.f)); // Deep curve in onOnceBeforeDraw() 264 for (int i = 0; i < fShapes.count(); ++i) { in onOnceBeforeDraw() 265 fNative.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1)); in onOnceBeforeDraw() 266 fRaster.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1, /* raster */ true)); in onOnceBeforeDraw() 267 fSS4.push_back(OffscreenShapeRenderer::Make(fShapes[i], 4)); // 4x4 -> 16 samples in onOnceBeforeDraw() 268 fSS16.push_back(OffscreenShapeRenderer::Make(fShapes[i], 8)); // 8x8 -> 64 samples in onOnceBeforeDraw() [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleThinAA.cpp | 254 fShapes.push_back(RectRenderer::Make()); in onOnceBeforeDraw() 255 fShapes.push_back(PathRenderer::MakeLine()); in onOnceBeforeDraw() 256 fShapes.push_back(PathRenderer::MakeLines(4.f)); // 2 segments in onOnceBeforeDraw() 257 fShapes.push_back(PathRenderer::MakeCurve(2.f)); // Shallow curve in onOnceBeforeDraw() 258 fShapes.push_back(PathRenderer::MakeCurve(8.f)); // Deep curve in onOnceBeforeDraw() 260 for (int i = 0; i < fShapes.count(); ++i) { in onOnceBeforeDraw() 261 fNative.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1)); in onOnceBeforeDraw() 262 fRaster.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1, /* raster */ true)); in onOnceBeforeDraw() 263 fSS4.push_back(OffscreenShapeRenderer::Make(fShapes[i], 4)); // 4x4 -> 16 samples in onOnceBeforeDraw() 264 fSS16.push_back(OffscreenShapeRenderer::Make(fShapes[i], 8)); // 8x8 -> 64 samples in onOnceBeforeDraw() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | SmallPathRenderer.cpp | 87 fShapes.emplace_back(Entry{color, shape, viewMatrix}); in SmallPathOp() 104 &fShapes.front().fColor, &fWideColor); in finalize() 145 int instanceCount = fShapes.count(); in onPrepareDraws() 168 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() 226 const Entry& args = fShapes[i]; in onPrepareDraws() 591 const SkPMColor4f& color() const { return fShapes[0].fColor; } in color() 604 const SkMatrix& thisCtm = this->fShapes[0].fViewMatrix; in onCombineIfPossible() 605 const SkMatrix& thatCtm = that->fShapes[0].fViewMatrix; in onCombineIfPossible() 626 fShapes.push_back_n(that->fShapes.count(), that->fShapes.begin()); in onCombineIfPossible() 634 for (const auto& geo : fShapes) { in onDumpInfo() [all …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 266 fShapes.emplace_back(Entry{color, shape, viewMatrix}); in SmallPathOp() 289 for (const auto& geo : fShapes) { in dumpInfo() 305 GrProcessorAnalysisCoverage::kSingleChannel, &fShapes.front().fColor, &fWideColor); in finalize() 319 int instanceCount = fShapes.count(); in onPrepareDraws() 333 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() 390 const Entry& args = fShapes[i]; in onPrepareDraws() 810 const SkPMColor4f& color() const { return fShapes[0].fColor; } in color() 823 const SkMatrix& thisCtm = this->fShapes[0].fViewMatrix; in onCombineIfPossible() 824 const SkMatrix& thatCtm = that->fShapes[0].fViewMatrix; in onCombineIfPossible() 845 fShapes.push_back_n(that->fShapes.count(), that->fShapes.begin()); in onCombineIfPossible() [all …]
|