Lines Matching refs:img
34 auto imageProxyID = [&](const sk_sp<SkImage>& img) {
35 return sk_gpu_test::GetTextureImageProxy(img.get(), dContext)->uniqueID();
45 sk_sp<SkImage> img = surf->makeImageSnapshot();
47 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
50 surf2->getCanvas()->drawImage(img, 0, 0);
51 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
54 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img));
56 GrSurfaceProxy::UniqueID imageID = imageProxyID(img);
57 img = surf->makeImageSnapshot();
58 REPORTER_ASSERT(reporter, imageProxyID(img) != imageID);
66 img = surf->makeImageSnapshot();
67 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
68 recorder.getCanvas()->drawImage(img, 0, 0);
69 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img));
73 img = surf->makeImageSnapshot();
75 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img));
77 recorder.getCanvas()->drawImage(img, 0, 0);
78 REPORTER_ASSERT(reporter, surfID == imageProxyID(img));