Home
last modified time | relevance | path

Searched refs:recordingCanvas (Results 1 – 18 of 18) sorted by relevance

/external/skia/docs/examples/
DCanvas_drawPicture_2.cpp8 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() local
12 recordingCanvas->drawRect({10, 10, 30, 40}, paint); in draw()
13 recordingCanvas->translate(10, 10); in draw()
14 recordingCanvas->scale(1.2f, 1.4f); in draw()
DCanvas_drawPicture_4.cpp9 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() local
12 recordingCanvas->drawRect({10, 10, 30, 40}, paint); in draw()
13 recordingCanvas->translate(10, 10); in draw()
14 recordingCanvas->scale(1.2f, 1.4f); in draw()
DCanvas_drawPicture_3.cpp9 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() local
12 recordingCanvas->drawRect({10, 10, 30, 40}, paint); in draw()
13 recordingCanvas->translate(10, 10); in draw()
14 recordingCanvas->scale(1.2f, 1.4f); in draw()
DImage_MakeFromPicture.cpp9 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() local
12 recordingCanvas->drawRect({10, 10, 30, 40}, paint); in draw()
13 recordingCanvas->translate(10, 10); in draw()
14 recordingCanvas->scale(1.2f, 1.4f); in draw()
/external/skia/tools/
DDDLTileHelper.cpp56 SkCanvas* recordingCanvas = recorder.getCanvas(); in createDDL() local
59 recordingCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height())); in createDDL()
60 recordingCanvas->translate(-fClip.fLeft, -fClip.fTop); in createDDL()
64 recordingCanvas->drawPicture(picture); in createDDL()
74 SkCanvas* recordingCanvas = recorder.getCanvas(); in createComposeDDL() local
83 recordingCanvas->recordingContext()->threadSafeProxy()); in createComposeDDL()
91 recordingCanvas->drawImageRect(promiseImage.get(), SkRect::Make(srcRect), dstRect, in createComposeDDL()
/external/skia/tests/
DPictureBBHTest.cpp29 virtual void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) = 0;
77 void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) override { in doTest() argument
81 recordingCanvas.drawRect(SkRect::MakeWH(3, 3), paint); in doTest()
DImageFilterTest.cpp202 SkCanvas* recordingCanvas = recorder.beginRecording(64, 64); in FilterList() local
206 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
834 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width), in draw_saveLayer_picture() local
837 recordingCanvas->translate(-55, 0); in draw_saveLayer_picture()
838 recordingCanvas->saveLayer(&bounds, &paint); in draw_saveLayer_picture()
839 recordingCanvas->restore(); in draw_saveLayer_picture()
1211 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100, &factory); in DEF_TEST() local
1215 recordingCanvas->saveLayer(nullptr, &paint); in DEF_TEST()
1218 recordingCanvas->save(); in DEF_TEST()
1219 recordingCanvas->scale(SkIntToScalar(10), SkIntToScalar(10)); in DEF_TEST()
[all …]
DSerializationTest.cpp779 SkCanvas* recordingCanvas = recorder.beginRecording(SkRect::MakeWH(100, 100)); in DEF_TEST() local
784 SkAnnotateRectWithURL(recordingCanvas, r0, d0.get()); in DEF_TEST()
789 SkAnnotateNamedDestination(recordingCanvas, {r1.x(), r1.y()}, d1.get()); in DEF_TEST()
794 SkAnnotateLinkToDestination(recordingCanvas, r2, d2.get()); in DEF_TEST()
DPictureTest.cpp361 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100); in test_bad_bitmap() local
362 recordingCanvas->drawImage(nullptr, 0, 0); in test_bad_bitmap()
/external/skqp/tests/
DPictureBBHTest.cpp30 virtual void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) = 0;
78 void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) override { in doTest() argument
82 recordingCanvas.drawRect(SkRect::MakeWH(3, 3), paint); in doTest()
DImageFilterTest.cpp238 SkCanvas* recordingCanvas = recorder.beginRecording(64, 64); in FilterList() local
242 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
792 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width), in draw_saveLayer_picture() local
795 recordingCanvas->translate(-55, 0); in draw_saveLayer_picture()
796 recordingCanvas->saveLayer(&bounds, &paint); in draw_saveLayer_picture()
797 recordingCanvas->restore(); in draw_saveLayer_picture()
1185 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100, &factory, 0); in DEF_TEST() local
1189 recordingCanvas->saveLayer(nullptr, &paint); in DEF_TEST()
1192 recordingCanvas->save(); in DEF_TEST()
1193 recordingCanvas->scale(SkIntToScalar(10), SkIntToScalar(10)); in DEF_TEST()
[all …]
DSerializationTest.cpp689 SkCanvas* recordingCanvas = recorder.beginRecording(SkRect::MakeWH(100, 100)); in DEF_TEST() local
694 SkAnnotateRectWithURL(recordingCanvas, r0, d0.get()); in DEF_TEST()
699 SkAnnotateNamedDestination(recordingCanvas, {r1.x(), r1.y()}, d1.get()); in DEF_TEST()
704 SkAnnotateLinkToDestination(recordingCanvas, r2, d2.get()); in DEF_TEST()
DPictureTest.cpp362 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100); in test_bad_bitmap() local
363 recordingCanvas->drawBitmap(bm, 0, 0); in test_bad_bitmap()
/external/skia/bench/
DDDLRecorderBench.cpp62 SkCanvas* recordingCanvas = fRecorder->getCanvas(); in onDraw() local
64 recordingCanvas->drawRect(SkRect::MakeWH(32, 32), SkPaint()); in onDraw()
/external/skqp/site/user/api/
Dskcanvas_creation.md156 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width),
158 draw(recordingCanvas);
/external/skia/site/docs/user/api/
Dskcanvas_creation.md159 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width),
161 draw(recordingCanvas);
/external/skqp/docs/
DSkCanvas_Reference.bmh4032 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50);
4036 recordingCanvas->drawRect({10, 10, 30, 40}, paint);
4037 recordingCanvas->translate(10, 10);
4038 recordingCanvas->scale(1.2f, 1.4f);
4060 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50);
4064 recordingCanvas->drawRect({10, 10, 30, 40}, paint);
4065 recordingCanvas->translate(10, 10);
4066 recordingCanvas->scale(1.2f, 1.4f);
4089 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50);
4092 recordingCanvas->drawRect({10, 10, 30, 40}, paint);
[all …]
DSkImage_Reference.bmh654 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50);
657 recordingCanvas->drawRect({10, 10, 30, 40}, paint);
658 recordingCanvas->translate(10, 10);
659 recordingCanvas->scale(1.2f, 1.4f);