• Home
  • Raw
  • Download

Lines Matching refs:proxy

47     sk_sp<GrTextureProxy> proxy =  in deferred_tex()  local
51 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
52 return proxy; in deferred_tex()
61 sk_sp<GrTextureProxy> proxy = in deferred_texRT() local
64 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
65 return proxy; in deferred_texRT()
72 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy( in wrapped() local
75 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped()
76 return proxy; in wrapped()
93 sk_sp<GrTextureProxy> proxy = proxyProvider->testingOnly_createInstantiatedProxy( in wrapped_with_key() local
95 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get())); in wrapped_with_key()
96 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid()); in wrapped_with_key()
97 return proxy; in wrapped_with_key()
125 sk_sp<GrTextureProxy> proxy) { in basic_test() argument
135 if (proxy->getUniqueKey().isValid()) { in basic_test()
136 key = proxy->getUniqueKey(); in basic_test()
143 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get())); in basic_test()
150 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey()); in basic_test()
157 int expectedCacheCount = startCacheCount + (proxy->isInstantiated() ? 0 : 1); in basic_test()
160 SkAssertResult(proxy->instantiate(resourceProvider)); in basic_test()
161 const GrUniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
167 bool expectResourceToOutliveProxy = proxy->peekSurface()->resourcePriv().budgetedType() == in basic_test()
173 proxy->peekSurface()->resourcePriv().budgetedType() == in basic_test()
177 proxy = nullptr; in basic_test()
185 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key, kBottomLeft_GrSurfaceOrigin); in basic_test()
186 REPORTER_ASSERT(reporter, proxy); in basic_test()
191 proxy = nullptr; in basic_test()
200 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key, kBottomLeft_GrSurfaceOrigin); in basic_test()
201 REPORTER_ASSERT(reporter, expectResourceToOutliveProxy ? (bool)proxy : !proxy); in basic_test()
205 proxy.reset(); in basic_test()
210 proxy = proxyProvider->findOrCreateProxyByUniqueKey(key, kBottomLeft_GrSurfaceOrigin); in basic_test()
211 REPORTER_ASSERT(reporter, !proxy); in basic_test()
275 sk_sp<GrTextureProxy> proxy = deferred_tex(reporter, context, proxyProvider, in invalidation_and_instantiation_test() local
277 SkAssertResult(proxyProvider->assignUniqueKeyToProxy(key, proxy.get())); in invalidation_and_instantiation_test()
288 SkAssertResult(proxy->instantiate(resourceProvider)); in invalidation_and_instantiation_test()
290 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
291 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
295 proxy = nullptr; in invalidation_and_instantiation_test()
318 sk_sp<GrTextureProxy> proxy = create_wrapped_backend(context, fit, &backingTex); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
319 basic_test(context, reporter, std::move(proxy)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()