/external/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 …]
|
/external/skqp/gm/ |
D | shapes.cpp | 31 fShapes.push_back().setOval(SkRect::MakeXYWH(-5, 25, 200, 100)); in onOnceBeforeDraw() 34 fShapes.push_back().setRect(SkRect::MakeXYWH(95, 75, 125, 100)); in onOnceBeforeDraw() 37 fShapes.push_back().setRectXY(SkRect::MakeXYWH(0, 75, 150, 100), 1e-5f, 1e-5f); in onOnceBeforeDraw() 40 fShapes.push_back().setRectXY(SkRect::MakeXYWH(15, -20, 100, 100), 20, 15); in onOnceBeforeDraw() 43 fSimpleShapeCount = fShapes.count(); in onOnceBeforeDraw() 45 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(140, -50, 90, 110), 10, 5, 25, 35); in onOnceBeforeDraw() 48 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(160, -60, 60, 90), 10, 60, 50, 30); in onOnceBeforeDraw() 51 fShapes.push_back().setNinePatch(SkRect::MakeXYWH(220, -120, 60, 90), 1, 89, 59, 1); in onOnceBeforeDraw() 55 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(150, -129, 80, 160), radii); in onOnceBeforeDraw() 59 fShapes.push_back().setRectRadii(SkRect::MakeXYWH(180, -30, 80, 60), radii2); in onOnceBeforeDraw() [all …]
|
/external/skqp/bench/ |
D | ShapesBench.cpp | 149 fShapes.push_back_n(fNumShapes); in onDelayedSetup() 153 fShapes[i].fMatrix.setTranslate(0.5f * pad + rand.nextF() * (kBenchWidth - pad), in onDelayedSetup() 155 fShapes[i].fMatrix.preRotate(rand.nextF() * 360.0f); in onDelayedSetup() 157 fShapes[i].fMatrix.setPerspX(0.00015f); in onDelayedSetup() 158 fShapes[i].fMatrix.setPerspY(-0.00015f); in onDelayedSetup() 160 fShapes[i].fColor = rand.nextU() | 0xff808080; in onDelayedSetup() 178 fShapes[i].fDraw = bind(&SkCanvas::drawRect, _1, cref(fRect.rect()), _2); in onDelayedSetup() 181 fShapes[i].fDraw = bind(&SkCanvas::drawOval, _1, cref(fOval.rect()), _2); in onDelayedSetup() 184 fShapes[i].fDraw = bind(&SkCanvas::drawRRect, _1, cref(fRRect), _2); in onDelayedSetup() 200 fShapes[i].fDraw = std::bind(&SkCanvas::drawDRRect, std::placeholders::_1, in onDelayedSetup() [all …]
|
/external/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 …]
|
/external/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 …]
|
/external/skqp/samplecode/ |
D | SampleThinAA.cpp | 255 fShapes.push_back(RectRenderer::Make()); in onOnceBeforeDraw() 256 fShapes.push_back(PathRenderer::MakeLine()); in onOnceBeforeDraw() 257 fShapes.push_back(PathRenderer::MakeLines(4.f)); // 2 segments in onOnceBeforeDraw() 258 fShapes.push_back(PathRenderer::MakeCurve(2.f)); // Shallow curve in onOnceBeforeDraw() 259 fShapes.push_back(PathRenderer::MakeCurve(8.f)); // Deep curve in onOnceBeforeDraw() 261 for (int i = 0; i < fShapes.count(); ++i) { in onOnceBeforeDraw() 262 fNative.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1)); in onOnceBeforeDraw() 263 fRaster.push_back(OffscreenShapeRenderer::Make(fShapes[i], 1, /* raster */ true)); in onOnceBeforeDraw() 264 fSS4.push_back(OffscreenShapeRenderer::Make(fShapes[i], 4)); // 4x4 -> 16 samples in onOnceBeforeDraw() 265 fSS16.push_back(OffscreenShapeRenderer::Make(fShapes[i], 8)); // 8x8 -> 64 samples in onOnceBeforeDraw() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 264 fShapes.emplace_back(Entry{color, shape, viewMatrix}); in SmallPathOp() 289 for (const auto& geo : fShapes) { in dumpInfo() 302 &fShapes.front().fColor); in finalize() 317 int instanceCount = fShapes.count(); in onPrepareDraws() 334 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() 391 const Entry& args = fShapes[i]; in onPrepareDraws() 808 const SkPMColor4f& color() const { return fShapes[0].fColor; } in color() 821 const SkMatrix& thisCtm = this->fShapes[0].fViewMatrix; in onCombineIfPossible() 822 const SkMatrix& thatCtm = that->fShapes[0].fViewMatrix; in onCombineIfPossible() 843 fShapes.push_back_n(that->fShapes.count(), that->fShapes.begin()); in onCombineIfPossible() [all …]
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 261 fShapes.emplace_back(Entry{color, shape, viewMatrix}); in SmallPathOp() 284 for (const auto& geo : fShapes) { in dumpInfo() 300 GrProcessorAnalysisCoverage::kSingleChannel, &fShapes.front().fColor, &fWideColor); in finalize() 314 int instanceCount = fShapes.count(); in onPrepareDraws() 331 const SkMatrix& ctm = fShapes[0].fViewMatrix; in onPrepareDraws() 389 const Entry& args = fShapes[i]; in onPrepareDraws() 823 const SkPMColor4f& color() const { return fShapes[0].fColor; } in color() 837 const SkMatrix& thisCtm = this->fShapes[0].fViewMatrix; in onCombineIfPossible() 838 const SkMatrix& thatCtm = that->fShapes[0].fViewMatrix; in onCombineIfPossible() 859 fShapes.push_back_n(that->fShapes.count(), that->fShapes.begin()); in onCombineIfPossible() [all …]
|