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