Home | History | Annotate | Download | only in gm

Lines Matching full:surf

58 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) {
59 drawContents(surf, SK_ColorRED);
60 SkImage* imgR = surf->newImageSnapshot();
63 SkImage* imgR2 = surf->newImageSnapshot();
68 drawContents(surf, SK_ColorGREEN);
69 SkImage* imgG = surf->newImageSnapshot();
74 drawContents(surf, SK_ColorBLUE);
82 surf->draw(canvas, 0, 160, usePaint ? &paint : nullptr);
85 src1.iset(0, 0, surf->width(), surf->height());
86 src2.iset(-surf->width() / 2, -surf->height() / 2,
87 surf->width(), surf->height());
88 src3.iset(0, 0, surf->width() / 2, surf->height() / 2);