Home
last modified time | relevance | path

Searched refs:recordingCanvas (Results 1 – 14 of 14) 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.cpp57 SkCanvas* recordingCanvas = recorder.getCanvas(); in createDDL() local
60 recordingCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height())); in createDDL()
61 recordingCanvas->translate(-fClip.fLeft, -fClip.fTop); in createDDL()
65 recordingCanvas->drawPicture(picture); in createDDL()
75 SkCanvas* recordingCanvas = recorder.getCanvas(); in createComposeDDL() local
84 recordingCanvas->recordingContext()->threadSafeProxy()); in createComposeDDL()
92 recordingCanvas->drawImageRect(promiseImage.get(), SkRect::Make(srcRect), dstRect, in createComposeDDL()
/external/skia/tests/
DPictureBBHTest.cpp32 virtual void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) = 0;
80 void doTest(SkCanvas& playbackCanvas, SkCanvas& recordingCanvas) override { in doTest() argument
84 recordingCanvas.drawRect(SkRect::MakeWH(3, 3), paint); in doTest()
DImageFilterTest.cpp241 SkCanvas* recordingCanvas = recorder.beginRecording(64, 64); in FilterList() local
245 recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 30, 20)), greenPaint); in FilterList()
887 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width), in draw_saveLayer_picture() local
890 recordingCanvas->translate(-55, 0); in draw_saveLayer_picture()
891 recordingCanvas->saveLayer(&bounds, &paint); in draw_saveLayer_picture()
892 recordingCanvas->restore(); in draw_saveLayer_picture()
1272 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100, &factory); in DEF_TEST() local
1276 recordingCanvas->saveLayer(nullptr, &paint); in DEF_TEST()
1279 recordingCanvas->save(); in DEF_TEST()
1280 recordingCanvas->scale(SkIntToScalar(10), SkIntToScalar(10)); in DEF_TEST()
[all …]
DSerializationTest.cpp874 SkCanvas* recordingCanvas = recorder.beginRecording(SkRect::MakeWH(100, 100)); in DEF_TEST() local
879 SkAnnotateRectWithURL(recordingCanvas, r0, d0.get()); in DEF_TEST()
884 SkAnnotateNamedDestination(recordingCanvas, {r1.x(), r1.y()}, d1.get()); in DEF_TEST()
889 SkAnnotateLinkToDestination(recordingCanvas, r2, d2.get()); in DEF_TEST()
DPictureTest.cpp363 SkCanvas* recordingCanvas = recorder.beginRecording(100, 100); in test_bad_bitmap() local
364 recordingCanvas->drawImage(nullptr, 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/skia/gm/
Dgraphite_replay.cpp111 SkCanvas* recordingCanvas = recorder->makeDeferredCanvas(tileImageInfo, textureInfo); in drawGraphite() local
112 this->drawTile(recordingCanvas); in drawGraphite()
/external/skia/site/docs/user/api/
Dskcanvas_creation.md149 SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width),
151 draw(recordingCanvas);
/external/skia/src/ports/
DSkFontHost_FreeType.cpp1334 SkCanvas* recordingCanvas = recorder.beginRecording(infiniteRect, bboxh); in generateMetrics() local
1335 if (!this->drawSVGGlyph(fFace, *glyph, fLoadGlyphFlags, palette, recordingCanvas)) { in generateMetrics()
1466 SkCanvas* recordingCanvas = recorder.beginRecording(SkRect::Make(glyph.mask().fBounds)); in generateDrawable() local
1469 if (!this->drawCOLRv0Glyph(fFace, glyph, fLoadGlyphFlags, palette, recordingCanvas)) { in generateDrawable()
1477 if (!this->drawCOLRv1Glyph(fFace, glyph, fLoadGlyphFlags, palette, recordingCanvas)) { in generateDrawable()
1488 if (!this->drawSVGGlyph(fFace, glyph, fLoadGlyphFlags, palette, recordingCanvas)) { in generateDrawable()
DSkScalerContext_win_dw.cpp681 SkCanvas* recordingCanvas = recorder.beginRecording(infiniteRect, bboxh); in generateSVGMetrics() local
682 if (!this->drawSVGGlyphImage(*glyph, *recordingCanvas)) { in generateSVGMetrics()