Lines Matching refs:surf
38 auto surfaceProxyID = [&](const sk_sp<SkSurface>& surf) {
39 GrRenderTargetProxy* rtp = SkCanvasPriv::TopDeviceTargetProxy(surf->getCanvas());
43 sk_sp<SkSurface> surf = makeDirectBackendSurface();
44 surf->getCanvas()->clear(SkColor4f{1, 0, 0, 1});
45 sk_sp<SkImage> img = surf->makeImageSnapshot();
47 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
51 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
53 surf->getCanvas()->clear({0, 0, 1, 1});
54 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img));
57 img = surf->makeImageSnapshot();
61 REPORTER_ASSERT(reporter, surf->characterize(&characterization));
65 surf = makeDirectBackendSurface();
66 img = surf->makeImageSnapshot();
67 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
69 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img));
72 surf = makeDirectBackendSurface();
73 img = surf->makeImageSnapshot();
74 GrSurfaceProxy::UniqueID surfID = surfaceProxyID(surf);
75 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
76 surf.reset();