Lines Matching refs:surf
20 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() argument
21 return surf->subset(); in Subset()
32 static void test_surface(const sk_sp<SkSpecialSurface>& surf, in test_surface() argument
36 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf.get()); in test_surface()
42 SkCanvas* canvas = surf->getCanvas(); in test_surface()
47 sk_sp<SkSpecialImage> img(surf->makeImageSnapshot()); in test_surface()
54 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface()
60 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeRaster(info, SkSurfaceProps())); in DEF_TEST() local
62 test_surface(surf, reporter, 0); in DEF_TEST()
72 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm, SkSurfaceProps())); in DEF_TEST() local
74 test_surface(surf, reporter, kPad); in DEF_TEST()
90 auto surf(SkSpecialSurface::MakeRenderTarget(dContext, ii, SkSurfaceProps())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
91 test_surface(surf, reporter, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()