Lines Matching refs:surf
57 static void test_surface(SkCanvas* canvas, SkSurface* surf, bool usePaint) { in test_surface() argument
58 drawContents(surf, SK_ColorRED); in test_surface()
59 SkImage* imgR = surf->newImageSnapshot(); in test_surface()
62 SkImage* imgR2 = surf->newImageSnapshot(); in test_surface()
67 drawContents(surf, SK_ColorGREEN); in test_surface()
68 SkImage* imgG = surf->newImageSnapshot(); in test_surface()
73 drawContents(surf, SK_ColorBLUE); in test_surface()
81 surf->draw(canvas, 0, 160, usePaint ? &paint : NULL); in test_surface()
84 src1.iset(0, 0, surf->width(), surf->height()); in test_surface()
85 src2.iset(-surf->width() / 2, -surf->height() / 2, in test_surface()
86 surf->width(), surf->height()); in test_surface()
87 src3.iset(0, 0, surf->width() / 2, surf->height() / 2); in test_surface()