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