/third_party/skia/docs/examples/ |
D | Canvas_saveLayer_4.cpp | 22 canvas->drawRect(SkRect::MakeLTRB(10, 10, 60, 60), pRed); in draw() 23 canvas->drawRect(SkRect::MakeLTRB(150, 10, 200, 60), pRed); in draw() 25 canvas->drawRect(SkRect::MakeLTRB(30, 10, 80, 60), pSolidBlue); in draw() 26 canvas->drawRect(SkRect::MakeLTRB(170, 10, 220, 60), pThirtyBlue); in draw() 32 canvas->drawRect(SkRect::MakeLTRB(10, 70, 60, 120), pRed); in draw() 33 canvas->drawRect(SkRect::MakeLTRB(150, 70, 200, 120), pRed); in draw() 40 canvas->drawRect(SkRect::MakeLTRB(30, 70, 80, 120), pSolidBlue); in draw() 41 canvas->drawRect(SkRect::MakeLTRB(170, 70, 220, 120), pThirtyBlue); in draw() 50 canvas->drawRect(SkRect::MakeLTRB(10, 130, 60, 180), pRed); in draw() 51 canvas->drawRect(SkRect::MakeLTRB(150, 130, 200, 180), pRed); in draw() [all …]
|
D | blur4444.cpp | 15 canvas->drawRect({350, 0, 400, 480}, ltGrayPaint); in draw() 16 canvas->drawRect({400, 0, 500, 480}, grayPaint); in draw() 17 canvas->drawRect({500, 0, 640, 480}, SkPaint()); in draw() 18 canvas->drawRect({0, 200, 320, 215}, ltGrayPaint); in draw() 19 canvas->drawRect({0, 215, 320, 230}, grayPaint); in draw() 20 canvas->drawRect({0, 230, 320, 250}, SkPaint()); in draw() 43 c->drawRect(SkRect{0, 20, 640, 104}, blrPaint); in draw() 46 c->drawRect(SkRect{0, 0, 640, 84}.makeOffset(0, 300), blrPaint); in draw() 55 c->drawRect(SkRect{0, 0, 640, 100}.makeOffset(0, 150), grdPaint); in draw()
|
D | 50_percent_gray.cpp | 8 surf->getCanvas()->drawRect({0, 0, 1, 1}, SkPaint()); in make_bw_dither() 9 surf->getCanvas()->drawRect({1, 1, 2, 2}, SkPaint()); in make_bw_dither() 23 canvas->drawRect({0, 0, 100, 100}, p); in draw() 31 canvas->drawRect({0, 0, 200, 200}, p); in draw() 39 canvas->drawRect({0, 0, 100, 100}, p); in draw() 46 canvas->drawRect({0, 0, 100, 100}, p); in draw() 52 canvas->drawRect({0, 0, 100, 100}, p); in draw()
|
D | 50_percent_srgb.cpp | 8 surf->getCanvas()->drawRect({0, 0, 1, 1}, SkPaint()); in make() 9 surf->getCanvas()->drawRect({1, 1, 2, 2}, SkPaint()); in make() 22 canvas->drawRect({0, 0, 50, 50}, p); in draw() 26 canvas->drawRect(r, p); in draw() 31 canvas->drawRect(r, p); in draw() 35 canvas->drawRect(r, p); in draw()
|
/third_party/skia/gm/ |
D | bigrect.cpp | 36 canvas->drawRect(horiz, rectPaint); in draw_big_rect() 39 canvas->drawRect(vert, rectPaint); in draw_big_rect() 42 canvas->drawRect(fromLeft, rectPaint); in draw_big_rect() 45 canvas->drawRect(fromTop, rectPaint); in draw_big_rect() 48 canvas->drawRect(fromRight, rectPaint); in draw_big_rect() 51 canvas->drawRect(fromBottom, rectPaint); in draw_big_rect() 54 canvas->drawRect(leftBorder, rectPaint); in draw_big_rect() 57 canvas->drawRect(topBorder, rectPaint); in draw_big_rect() 60 canvas->drawRect(rightBorder, rectPaint); in draw_big_rect() 63 canvas->drawRect(bottomBorder, rectPaint); in draw_big_rect() [all …]
|
D | perlinnoise.cpp | 39 void drawRect(SkCanvas* canvas, int x, int y, const SkPaint& paint, const SkISize& size) { in drawRect() function in __anon11883e020111::PerlinNoiseGM 44 canvas->drawRect(r, paint); in drawRect() 72 drawRect(canvas, x, y, paint, tileSize); in test() 74 drawRect(canvas, x, y, paint, tileSize); in test() 76 drawRect(canvas, x, y, paint, tileSize); in test() 78 drawRect(canvas, x, y, paint, tileSize); in test() 80 drawRect(canvas, x, y, paint, fSize); in test() 146 canvas->drawRect(r, paint); in onDraw() 150 canvas->drawRect(r, paint); in onDraw() 156 canvas->drawRect(r, paint); in onDraw() [all …]
|
D | blend.cpp | 23 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p); 25 canvas->drawRect(SkRect::MakeXYWH(0,0,1,1), p); 28 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p); 31 canvas->drawRect(SkRect::MakeXYWH(1,0,1,1), p); 35 canvas->drawRect(SkRect::MakeXYWH(2,0,1,1), p); 38 canvas->drawRect(SkRect::MakeXYWH(2, 0, 1, 1), p);
|
D | overdrawcanvas.cpp | 40 overdrawCanvas.drawRect(SkRect::MakeLTRB(10, 10, 200, 200), SkPaint()); in DEF_SIMPLE_GM_BG() 41 overdrawCanvas.drawRect(SkRect::MakeLTRB(20, 20, 190, 190), SkPaint()); in DEF_SIMPLE_GM_BG() 42 overdrawCanvas.drawRect(SkRect::MakeLTRB(30, 30, 180, 180), SkPaint()); in DEF_SIMPLE_GM_BG() 43 overdrawCanvas.drawRect(SkRect::MakeLTRB(40, 40, 170, 170), SkPaint()); in DEF_SIMPLE_GM_BG() 44 overdrawCanvas.drawRect(SkRect::MakeLTRB(50, 50, 160, 160), SkPaint()); in DEF_SIMPLE_GM_BG() 45 overdrawCanvas.drawRect(SkRect::MakeLTRB(60, 60, 150, 150), SkPaint()); in DEF_SIMPLE_GM_BG()
|
D | croppedrects.cpp | 48 srcCanvas->drawRect(kSrcImageClip, paint); in onOnceBeforeDraw() 55 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw() 76 SkRect drawRect = SkRect::MakeXYWH(350, 100, 100, 300); in onDraw() local 77 canvas->clipRect(drawRect); in onDraw() 81 drawRect.makeOutset(0.5f * drawRect.width(), drawRect.height()), in onDraw()
|
D | lattice.cpp | 63 canvas->drawRect(r, paint); in make_image() 66 canvas->drawRect(r, paint); in make_image() 69 canvas->drawRect(r, paint); in make_image() 73 canvas->drawRect(r, paint); in make_image() 76 canvas->drawRect(r, paint); in make_image() 79 canvas->drawRect(r, paint); in make_image() 252 canvas->drawRect(r, paint); in makeImage() 256 canvas->drawRect(r, paint); in makeImage() 260 canvas->drawRect(r, paint); in makeImage() 266 canvas->drawRect(r, paint); in makeImage() [all …]
|
D | rasterhandleallocator.cpp | 39 virtual void drawRect(const SkRect& r, SkColor c) { in drawRect() function in GraphicsPort 42 fCanvas->drawRect(r, p); in drawRect() 52 void drawRect(const SkRect& r, SkColor c) override { in drawRect() function in SkiaGraphicsPort 54 canvas->drawRect(r, SkPaint(SkColor4f::FromColor(c))); in drawRect() 96 void drawRect(const SkRect& r, SkColor c) override { in drawRect() function in CGGraphicsPort 167 void drawRect(const SkRect& r, SkColor c) override { in drawRect() function in GDIGraphicsPort 177 fCanvas->drawRect(r, paint); in drawRect() 279 port->drawRect({0, 0, 256, 256}, SK_ColorRED); in __anon7564ef380402() 282 port->drawRect({0, 0, 30, 30}, SK_ColorBLUE); in __anon7564ef380402() 287 port->drawRect({55, 55, 95, 95}, SK_ColorGREEN); in __anon7564ef380402() [all …]
|
D | stroke_rect_shader.cpp | 49 canvas->drawRect(kRect, paint); 53 canvas->drawRect(kRect, paint); 58 canvas->drawRect(kRect, paint); 62 canvas->drawRect(kRect, paint); 66 canvas->drawRect(kRect, paint);
|
D | composeshader.cpp | 69 canvas->drawRect(SkRect::MakeWH(100, 100), paint); in onDraw() 71 canvas->drawRect(SkRect::MakeWH(100, 100), paint); in onDraw() 111 canvas->drawRect(r, paint); in onDraw() 115 canvas->drawRect(r, paint); in onDraw() 219 canvas->drawRect(r, paint); in onDraw() 266 canvas->drawRect(r, paint); 281 canvas->drawRect(r, paint); 312 canvas->drawRect(r, p); in draw_cell() 316 canvas->drawRect(r, p); in draw_cell() 324 canvas->drawRect(SkRect::MakeWH(gCellSize, gCellSize), p); in draw_composed() [all …]
|
D | texelsubset.cpp | 139 SkRect drawRect; in onDraw() local 151 drawRect = localRect.makeOffset(x, y); in onDraw() 169 drawRect, in onDraw() 179 drawRect = localRect.makeOffset(x, y); in onDraw() 189 drawRect, localRect)) { in onDraw() 195 SkScalarFloorToScalar(drawRect.right() + kTestPad/2.f) + 0.5f; in onDraw() 201 SkScalar midY = SkScalarFloorToScalar(drawRect.bottom() + kTestPad/2.f) + 0.5f; in onDraw() 209 SkScalar midY = SkScalarFloorToScalar(drawRect.bottom() + kTestPad/2.f) + 0.5f; in onDraw()
|
D | clip_strokerect.cpp | 44 canvas->drawRect(r, p); in onDraw() 49 canvas->drawRect(rect, p); in onDraw() 62 canvas->drawRect(r2, p); in onDraw() 67 canvas->drawRect(rect2, p); in onDraw()
|
/third_party/skia/samplecode/ |
D | SampleAARects.cpp | 76 canvas->drawRect(rect, paints[p]); in onDrawContent() 83 canvas->drawRect(rect, paints[p]); in onDrawContent() 90 canvas->drawRect(rect, paints[p]); in onDrawContent() 97 canvas->drawRect(rect, paints[p]); in onDrawContent() 106 canvas->drawRect(rect, paints[p]); in onDrawContent() 119 canvas->drawRect(rect, paints[p]); in onDrawContent() 129 canvas->drawRect(rect, paints[p]); in onDrawContent() 139 canvas->drawRect(rect, paints[p]); in onDrawContent() 150 canvas->drawRect(rect, paints[p]); in onDrawContent() 161 canvas->drawRect(rect, paints[p]); in onDrawContent()
|
D | SampleGradients.cpp | 24 canvas->drawRect(r, p); in test_alphagradients() 25 canvas->drawRect(r, p2); in test_alphagradients() 29 canvas->drawRect(r, p); in test_alphagradients() 30 canvas->drawRect(r, p2); in test_alphagradients() 34 canvas->drawRect(r, p); in test_alphagradients() 35 canvas->drawRect(r, p2); in test_alphagradients() 140 canvas->drawRect(r, paint); in onDrawContent()
|
/third_party/skia/modules/canvaskit/tests/ |
D | canvas.spec.js | 258 canvas.drawRect(CanvasKit.LTRBRect(10, 10, 60, 60), paint); 260 canvas.drawRect(CanvasKit.LTRBRect(50, 10, 100, 60), paint); 275 canvas.drawRect(CanvasKit.LTRBRect(10, 70, 140, 120), paint); 377 canvas.drawRect(CanvasKit.LTRBRect(10, 70, 140, 120), paint); 421 canvas.drawRect(CanvasKit.LTRBRect(10, 10, 60, 60), redPaint); 422 canvas.drawRect(CanvasKit.LTRBRect(150, 10, 200, 60), redPaint); 423 canvas.drawRect(CanvasKit.LTRBRect(10, 70, 60, 120), redPaint); 424 canvas.drawRect(CanvasKit.LTRBRect(150, 70, 200, 120), redPaint); 429 canvas.drawRect(CanvasKit.LTRBRect(30, 10, 80, 60), solidBluePaint); 430 canvas.drawRect(CanvasKit.LTRBRect(170, 10, 220, 60), thirtyBluePaint); [all …]
|
/third_party/skia/tools/gpu/ |
D | TestOps.cpp | 89 const SkRect& drawRect, 114 const SkRect& drawRect, 147 const SkRect& drawRect, in Make() argument 151 return GrOp::Make<TestRectOp>(context, caps, std::move(paint), drawRect, localRect, localM); in Make() 167 const SkRect& drawRect, in TestRectOp() argument 171 , fDrawRect(drawRect) in TestRectOp() 176 this->setBounds(drawRect.makeSorted(), HasAABloat::kNo, IsHairline::kNo); in TestRectOp() 228 const SkRect& drawRect, in MakeRect() argument 231 return TestRectOp::Make(context, std::move(paint), drawRect, localRect, localM); in MakeRect() 236 const SkRect& drawRect, in MakeRect() argument [all …]
|
/third_party/skia/tests/ |
D | PictureTest.cpp | 179 SkRect drawRect = SkRect::MakeWH(10, 10); in create_imbalance() local 185 canvas->drawRect(drawRect, p); in create_imbalance() 273 canvas->drawRect(rect, paint); in test_unbalanced_save_restores() 276 canvas->drawRect(rect, paint); in test_unbalanced_save_restores() 290 canvas->drawRect(rect, paint); in test_unbalanced_save_restores() 293 canvas->drawRect(rect, paint); in test_unbalanced_save_restores() 309 canvas->drawRect(rect, paint); in test_unbalanced_save_restores() 435 canvas->drawRect(bounds, paint); in test_cull_rect_reset() 436 canvas->drawRect(bounds, paint); in test_cull_rect_reset() 642 c->drawRect(bound, SkPaint()); in DEF_TEST() [all …]
|
D | RecordOptsTest.cpp | 26 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); in DEF_TEST() 27 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); in DEF_TEST() 28 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); in DEF_TEST() 150 recorder.drawRect(draw, opaqueDrawPaint); in DEF_TEST() 156 recorder.drawRect(draw, opaqueDrawPaint); in DEF_TEST() 164 recorder.drawRect(draw, opaqueDrawPaint); in DEF_TEST() 170 recorder.drawRect(draw, opaqueDrawPaint); in DEF_TEST() 176 recorder.drawRect(draw, translucentDrawPaint); in DEF_TEST() 182 recorder.drawRect(draw, opaqueDrawPaint); in DEF_TEST() 186 const SkRecords::DrawRect* drawRect = assert_type<SkRecords::DrawRect>(r, record, 16); in DEF_TEST() local [all …]
|
D | RecordDrawTest.cpp | 63 recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint()); in DEF_TEST() 141 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint()); 164 recorder.drawRect(r1, p); in DEF_TEST() 165 recorder.drawRect(r2, p); in DEF_TEST() 166 recorder.drawRect(r3, p); in DEF_TEST() 174 const SkRecords::DrawRect* drawRect = assert_type<SkRecords::DrawRect>(r, rerecord, index); in DEF_TEST() local 175 REPORTER_ASSERT(r, drawRect->rect == r2); in DEF_TEST() 194 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST() 228 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST() 259 recorder.drawRect(SkRect::MakeLTRB(20, 20, 30, 30), SkPaint());
|
D | PictureBBHTest.cpp | 81 recordingCanvas.drawRect(SkRect::MakeWH(3, 3), paint); in doTest() 107 canvas->drawRect({-20,-20,-10,-10}, SkPaint{}); in DEF_TEST() 108 canvas->drawRect({-20,-20,-10,-10}, SkPaint{}); in DEF_TEST() 118 canvas->drawRect({-20,-20,-10,-10}, SkPaint{}); in DEF_TEST() 119 canvas->drawRect({-20,-20,-10,-10}, SkPaint{}); in DEF_TEST()
|
/third_party/skia/platform_tools/android/apps/androidkitdemo/src/main/java/org/skia/androidkitdemo1/ |
D | AnimationActivity.java | 70 drawRect(canvas, (1 + osc1)*cw/2, ch/2, mLinearGradient); in onRenderFrame() 71 drawRect(canvas, (1 - osc1)*cw/2, ch/2, mConicalGradient); in onRenderFrame() 72 drawRect(canvas, cw/2, (1 + osc2)*ch/2, mRadialGradient); in onRenderFrame() 73 drawRect(canvas, cw/2, (1 - osc2)*ch/2, mSweepGradient); in onRenderFrame() 76 private void drawRect(Canvas canvas, float cx, float cy, Shader shader) { in drawRect() method in AnimationRenderer 80 canvas.drawRect(cx - kWidth/2, cy - kHeight/2, cx + kWidth/2, cy + kHeight/2, in drawRect()
|
/third_party/skia/bench/ |
D | MergeBench.cpp | 42 canvas->drawRect(SkRect::MakeXYWH(0, 0, 8, 8), darkPaint); in make_checkerboard() 43 canvas->drawRect(SkRect::MakeXYWH(8, 0, 8, 8), lightPaint); in make_checkerboard() 44 canvas->drawRect(SkRect::MakeXYWH(0, 8, 8, 8), lightPaint); in make_checkerboard() 45 canvas->drawRect(SkRect::MakeXYWH(8, 8, 8, 8), darkPaint); in make_checkerboard() 77 canvas->drawRect(r, paint); in onDraw()
|