Home | History | Annotate | Download | only in tests

Lines Matching full:surf

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