Lines Matching defs:proxy

48     sk_sp<GrTextureProxy> proxy =
52 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
53 return proxy;
64 sk_sp<GrTextureProxy> proxy =
68 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
69 return proxy;
74 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy(
77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
78 return proxy;
93 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy(
95 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get()));
96 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid());
97 return proxy;
124 sk_sp<GrTextureProxy> proxy,
135 if (proxy->getUniqueKey().isValid()) {
136 key = proxy->getUniqueKey();
141 // Assigning the uniqueKey adds the proxy to the hash but doesn't force instantiation
143 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get()));
150 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey());
156 int expectedCacheCount = startCacheCount + (proxy->isInstantiated() ? 0 : cacheEntriesPerProxy);
159 SkAssertResult(proxy->instantiate(resourceProvider));
160 const GrUniqueKey texKey = proxy->peekSurface()->getUniqueKey();
164 // An Unbudgeted-cacheable resource will not get purged when a proxy with the same key is
166 bool expectResourceToOutliveProxy = proxy->peekSurface()->resourcePriv().budgetedType() ==
172 proxy->peekSurface()->resourcePriv().budgetedType() ==
175 // deleting the proxy should delete it from the hash but not the cache
176 proxy = nullptr;
183 // If the proxy was cached refinding it should bring it back to life
184 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key);
185 REPORTER_ASSERT(reporter, proxy);
190 proxy = nullptr;
197 // If the texture was deleted then the proxy should no longer be findable. Otherwise, it should
199 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key);
200 REPORTER_ASSERT(reporter, expectResourceToOutliveProxy ? (bool)proxy : !proxy);
204 proxy.reset();
209 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key);
210 REPORTER_ASSERT(reporter, !proxy);
300 // Create proxy, assign unique key
301 sk_sp<GrTextureProxy> proxy = deferred_tex(reporter, dContext, proxyProvider,
303 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get()));
312 // Instantiate the proxy. This will trigger the message to be processed, so the resulting
314 SkAssertResult(proxy->instantiate(resourceProvider));
316 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
317 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid());
321 proxy = nullptr;
337 // proxy instansiations may add multiple things to the cache. There would be an entry for the