Home
last modified time | relevance | path

Searched refs:surfaceCanvas (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/docs/examples/
DSurface_getCanvas.cpp9 SkCanvas* surfaceCanvas = surface->getCanvas();
10 surfaceCanvas->clear(SK_ColorBLUE);
13 surfaceCanvas->drawString("\xF0\x9F\x98\x81", 12, 45, paint);
DSurface_MakeRenderTarget_3.cpp16 auto surfaceCanvas = gpuSurface->getCanvas(); in draw() local
17 surfaceCanvas->clear(SK_ColorWHITE); in draw()
18 surfaceCanvas->drawString("GPU rocks!", 20, 40, font, paint); in draw()
DSurface_MakeRenderTarget.cpp19 auto surfaceCanvas = gpuSurface->getCanvas(); in draw() local
20 surfaceCanvas->clear(SK_ColorWHITE); in draw()
21 surfaceCanvas->drawString("GPU rocks!", 20, 40, font, paint); in draw()
DSurface_MakeRenderTarget_2.cpp7 auto test_draw = [](SkCanvas* surfaceCanvas) -> void { in draw() argument
16 surfaceCanvas->drawRect(SkRect::MakeWH(128, 64), paint); in draw()
18 surfaceCanvas->drawString("Text", 0, 25, font, paint); in draw()
DSurface_MakeFromBackendTexture.cpp29 auto surfaceCanvas = gpuSurface->getCanvas(); in draw() local
30 surfaceCanvas->drawString("GPU rocks!", 20, 40, font, paint); in draw()
/third_party/skia/gm/
Dresizeimagefilter.cpp97 SkCanvas* surfaceCanvas = surface->getCanvas(); in onDraw() local
98 surfaceCanvas->clear(0x000000); in onDraw()
104 surfaceCanvas->drawOval(ovalRect, paint); in onDraw()
Dtextblobrandomfont.cpp134 SkCanvas* surfaceCanvas = surface->getCanvas(); in onDraw() local
150 surfaceCanvas->rotate(-0.05f); in onDraw()
151 surfaceCanvas->drawTextBlob(fBlob, 10, yOffset, paint); in onDraw()