Home
last modified time | relevance | path

Searched refs:offscreen (Results 1 – 25 of 75) sorted by relevance

123

/external/skia/gm/
Dclear_swizzle.cpp57 auto offscreen = make_offscreen({2*kSize, 2*kSize}); variable
59 offscreen->clear(c.rect, c.color);
61 rtCtx->blitTexture(offscreen->readSurfaceView(),
67 offscreen = make_offscreen(c.rect.size());
68 offscreen->clear(SkIRect::MakeSize(c.rect.size()), c.color);
69 rtCtx->blitTexture(offscreen->readSurfaceView(),
70 SkIRect::MakeSize(offscreen->dimensions()),
Dcolorspace.cpp95 sk_sp<SkSurface> offscreen = in draw_colorspace_gm() local
97 if (!offscreen) { in draw_colorspace_gm()
102 offscreen->getCanvas()->drawImage(img, 0,0); in draw_colorspace_gm()
103 canvas->drawImage(offscreen->makeImageSnapshot(), 0,0); in draw_colorspace_gm()
Doverdrawcanvas.cpp35 sk_sp<SkSurface> offscreen = SkSurface::MakeRaster(offscreenInfo); in DEF_SIMPLE_GM_BG() local
36 auto c = offscreen->getCanvas(); in DEF_SIMPLE_GM_BG()
50 sk_sp<SkImage> counts = offscreen->makeImageSnapshot(); in DEF_SIMPLE_GM_BG()
Dcopy_to_4444.cpp55 SkCanvas offscreen(bitmap);
56 offscreen.clear(SK_ColorRED);
58 offscreen.clear(SK_ColorBLUE);
/external/skia/docs/examples/
DCanvas_destructor.cpp10 SkCanvas offscreen(bitmap); in draw() local
13 offscreen.drawString("ABC", 20, 160, font, paint); in draw()
15 offscreen.saveLayerAlpha(&layerBounds, 128); in draw()
16 offscreen.clear(SK_ColorWHITE); in draw()
17 offscreen.drawString("DEF", 20, 160, font, paint); in draw()
DDevice_Text.cpp10 SkCanvas offscreen(bitmap);
11 offscreen.clear(SK_ColorWHITE);
19 offscreen.drawString(",,,,", 0, 4, paint);
20 offscreen.translate(0, 7);
DBitmap_extractAlpha.cpp9 SkCanvas offscreen(bitmap); in draw() local
10 offscreen.clear(0); in draw()
16 offscreen.drawCircle(50, 50, 39, paint); in draw()
17 offscreen.flush(); in draw()
Dno_gpu_blur.cpp8 SkCanvas offscreen(bitmap); in draw() local
9 offscreen.clear(0); in draw()
15 offscreen.drawCircle(50, 50, 39, paint); in draw()
16 offscreen.flush(); in draw()
DBitmap_extractAlpha_3.cpp9 SkCanvas offscreen(bitmap); in draw() local
10 offscreen.clear(0); in draw()
16 offscreen.drawCircle(50, 50, 39, paint); in draw()
17 offscreen.flush(); in draw()
DBitmap_extractAlpha_2.cpp13 SkCanvas offscreen(bitmap); in draw() local
14 offscreen.clear(0); in draw()
20 offscreen.drawCircle(50, 50, 39, paint); in draw()
21 offscreen.flush(); in draw()
DImageInfo_MakeN32.cpp10 SkCanvas offscreen(bitmap);
11 offscreen.clear(SK_ColorWHITE);
13 offscreen.drawString("g", 0, 10, paint);
DImageInfo_MakeN32Premul_2.cpp10 SkCanvas offscreen(bitmap);
11 offscreen.clear(SK_ColorWHITE);
15 offscreen.drawString("\xF0\x9F\x98\xB9", 1, 15, paint);
DImageInfo_MakeN32Premul.cpp10 SkCanvas offscreen(bitmap);
11 offscreen.clear(SK_ColorWHITE);
15 offscreen.drawString("\xF0\x9F\x98\xB8", 1, 15, paint);
DBitmap_tryAllocPixels_2.cpp9 SkCanvas offscreen(bitmap); in draw() local
10 offscreen.scale(.25f, .5f); in draw()
12 offscreen.drawImage(source.asImage(), -y, -y); in draw()
DBitmap_tryAllocPixels.cpp10 SkCanvas offscreen(bitmap); in draw() local
11 offscreen.scale(.5f, .5f); in draw()
13 offscreen.drawImage(source.asImage(), -x, 0); in draw()
DBitmap_allocPixels.cpp10 SkCanvas offscreen(bitmap); in draw() local
11 offscreen.scale(.5f, .5f); in draw()
13 offscreen.drawImage(source.asImage(), 0, -y); in draw()
DPaint_setImageFilter.cpp10 SkCanvas offscreen(bitmap);
15 offscreen.clear(0);
16 offscreen.drawString("e", 20, 70, paint);
Dsetimagefilter.cpp8 SkCanvas offscreen(bitmap); in draw() local
13 offscreen.clear(0); in draw()
14 offscreen.drawString("e", 20, 70, font, paint); in draw()
Df16to8888busted.cpp11 sk_sp<SkSurface> offscreen = SkSurface::MakeRaster(info); in draw() local
13 offscreen->getCanvas()->drawRect(SkRect::MakeXYWH(25, 25, 50, 50), paint); in draw()
16 sk_sp<SkImage> img = offscreen->makeImageSnapshot(); in draw()
DBitmap_peekPixels.cpp9 SkCanvas offscreen(bitmap); in draw() local
10 offscreen.clear(SK_ColorWHITE); in draw()
13 offscreen.drawString("?", 0, 10, font, paint); in draw()
DImage_peekPixels.cpp10 SkCanvas offscreen(bitmap);
11 offscreen.clear(SK_ColorWHITE);
13 offscreen.drawString("%", 1, 10, paint);
DBitmap_pixmap.cpp9 SkCanvas offscreen(bitmap); in draw() local
10 offscreen.clear(SK_ColorWHITE); in draw()
14 offscreen.drawString("&", 0, 10, font, paint); in draw()
Dgpu8888diff.cpp11 SkCanvas offscreen(bitmap); in draw() local
12 offscreen.clear(SK_ColorGREEN); in draw()
14 offscreen.clear(SK_ColorGRAY); in draw()
Dgpu4444diff.cpp10 SkCanvas offscreen(bitmap); in draw() local
11 offscreen.clear(SK_ColorGREEN); in draw()
13 offscreen.clear(SK_ColorGRAY); in draw()
/external/skqp/gm/
DcopyTo4444.cpp62 SkCanvas offscreen(bitmap);
63 offscreen.clear(SK_ColorRED);
65 offscreen.clear(SK_ColorBLUE);

123