Lines Matching refs:dContext
100 static sk_sp<GrTextureProxy> create_wrapped_backend(GrDirectContext* dContext) { in create_wrapped_backend() argument
102 dContext, in create_wrapped_backend()
112 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in create_wrapped_backend()
122 static void basic_test(GrDirectContext* dContext, in basic_test() argument
128 GrResourceProvider* resourceProvider = dContext->priv().resourceProvider(); in basic_test()
129 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in basic_test()
130 GrResourceCache* cache = dContext->priv().getResourceCache(); in basic_test()
205 GrUniqueKeyInvalidatedMessage msg(texKey, dContext->priv().contextID()); in basic_test()
219 static void invalidation_test(GrDirectContext* dContext, in invalidation_test() argument
223 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in invalidation_test()
224 GrResourceCache* cache = dContext->priv().getResourceCache(); in invalidation_test()
243 if (dContext->backend() == GrBackendApi::kDawn || in invalidation_test()
244 dContext->backend() == GrBackendApi::kVulkan || in invalidation_test()
245 dContext->backend() == GrBackendApi::kDirect3D || in invalidation_test()
246 dContext->backend() == GrBackendApi::kMetal) { in invalidation_test()
250 sk_sp<SkImage> textureImg = rasterImg->makeTextureImage(dContext); in invalidation_test()
257 size_t maxBytes = dContext->getResourceCacheLimit(); in invalidation_test()
258 dContext->setResourceCacheLimit(maxBytes-1); in invalidation_test()
267 dContext->submit(true); in invalidation_test()
273 if (dContext->backend() == GrBackendApi::kDawn) { in invalidation_test()
274 GrDawnGpu* gpu = static_cast<GrDawnGpu*>(dContext->priv().getGpu()); in invalidation_test()
279 dContext->priv().getResourceCache()->purgeUnlockedResources(); in invalidation_test()
286 static void invalidation_and_instantiation_test(GrDirectContext* dContext, in invalidation_and_instantiation_test() argument
289 GrProxyProvider* proxyProvider = dContext->priv().proxyProvider(); in invalidation_and_instantiation_test()
290 GrResourceProvider* resourceProvider = dContext->priv().resourceProvider(); in invalidation_and_instantiation_test()
291 GrResourceCache* cache = dContext->priv().getResourceCache(); in invalidation_and_instantiation_test()
301 sk_sp<GrTextureProxy> proxy = deferred_tex(reporter, dContext, proxyProvider, in invalidation_and_instantiation_test()
307 GrUniqueKeyInvalidatedMessage(key, dContext->priv().contextID())); in invalidation_and_instantiation_test()
322 dContext->priv().getResourceCache()->purgeUnlockedResources(); in invalidation_and_instantiation_test()