Lines Matching refs:proxy
24 // Check that the surface proxy's member vars are set as expected
26 GrSurfaceProxy* proxy,
31 REPORTER_ASSERT(reporter, proxy->origin() == origin);
32 REPORTER_ASSERT(reporter, proxy->width() == width);
33 REPORTER_ASSERT(reporter, proxy->height() == height);
34 REPORTER_ASSERT(reporter, proxy->config() == config);
35 REPORTER_ASSERT(reporter, !proxy->uniqueID().isInvalid());
36 REPORTER_ASSERT(reporter, proxy->isBudgeted() == budgeted);
138 sk_sp<GrTextureProxy> proxy = proxyProvider->createProxy(
140 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
141 if (proxy) {
142 REPORTER_ASSERT(reporter, proxy->asRenderTargetProxy());
143 // This forces the proxy to compute and cache its
146 // the pre-computation. If the proxy never computed its
148 proxy->gpuMemorySize();
150 check_surface(reporter, proxy.get(), origin,
154 proxy->asRenderTargetProxy(),
170 sk_sp<GrTextureProxy> proxy(proxyProvider->createProxy(
172 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
173 if (proxy) {
174 // This forces the proxy to compute and cache its
177 // the pre-computation. If the proxy never computed its
179 proxy->gpuMemorySize();
181 check_surface(reporter, proxy.get(), origin,
184 proxy->asTextureProxy(), fit, false);
292 sk_sp<GrTextureProxy> proxy = provider->createProxy(desc, fit, SkBudgeted::kNo);
293 REPORTER_ASSERT(reporter, !proxy);