Lines Matching refs:surf
20 static const SkIRect& Subset(const SkSpecialSurface* surf) { in Subset() argument
21 return surf->subset(); in Subset()
36 static void test_surface(SkSpecialSurface* surf, skiatest::Reporter* reporter, int offset) { in test_surface() argument
38 const SkIRect surfSubset = TestingSpecialSurfaceAccess::Subset(surf); in test_surface()
44 SkCanvas* canvas = surf->getCanvas(); in test_surface()
49 SkAutoTUnref<SkSpecialImage> img(surf->newImageSnapshot()); in test_surface()
56 REPORTER_ASSERT(reporter, !surf->getCanvas()); in test_surface()
62 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewRaster(nullptr, info)); in DEF_TEST() local
64 test_surface(surf, reporter, 0); in DEF_TEST()
74 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewFromBitmap(nullptr, subset, bm)); in DEF_TEST() local
76 test_surface(surf, reporter, kPad); in DEF_TEST()
90 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewRenderTarget(nullptr, context, desc)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
92 test_surface(surf, reporter, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
108 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewFromTexture(nullptr, subset, temp)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
110 test_surface(surf, reporter, kPad); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()