Lines Matching refs:GrTextureProxy
53 bool GrProxyProvider::assignUniqueKeyToProxy(const GrUniqueKey& key, GrTextureProxy* proxy) { in assignUniqueKeyToProxy()
96 void GrProxyProvider::adoptUniqueKeyFromSurface(GrTextureProxy* proxy, const GrSurface* surf) { in adoptUniqueKeyFromSurface()
105 void GrProxyProvider::removeUniqueKeyFromProxy(GrTextureProxy* proxy) { in removeUniqueKeyFromProxy()
117 sk_sp<GrTextureProxy> GrProxyProvider::findProxyByUniqueKey(const GrUniqueKey& key) { in findProxyByUniqueKey()
124 GrTextureProxy* proxy = fUniquelyKeyedProxies.find(key); in findProxyByUniqueKey()
134 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createInstantiatedProxy( in testingOnly_createInstantiatedProxy()
184 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createInstantiatedProxy( in testingOnly_createInstantiatedProxy()
206 sk_sp<GrTextureProxy> GrProxyProvider::testingOnly_createWrapped(sk_sp<GrTexture> tex) { in testingOnly_createWrapped()
211 sk_sp<GrTextureProxy> GrProxyProvider::createWrapped(sk_sp<GrTexture> tex, in createWrapped()
221 …sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), useAllocator, this->isDDLProv… in createWrapped()
224 sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), useAllocator, in createWrapped()
229 sk_sp<GrTextureProxy> GrProxyProvider::findOrCreateProxyByUniqueKey(const GrUniqueKey& key, in findOrCreateProxyByUniqueKey()
237 sk_sp<GrTextureProxy> result = this->findProxyByUniqueKey(key); in findOrCreateProxyByUniqueKey()
284 sk_sp<GrTextureProxy> GrProxyProvider::createProxyFromBitmap(const SkBitmap& bitmap, in createProxyFromBitmap()
315 sk_sp<GrTextureProxy> proxy; in createProxyFromBitmap()
340 sk_sp<GrTextureProxy> GrProxyProvider::createNonMippedProxyFromBitmap(const SkBitmap& bitmap, in createNonMippedProxyFromBitmap()
351 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( in createNonMippedProxyFromBitmap()
378 sk_sp<GrTextureProxy> GrProxyProvider::createMippedProxyFromBitmap(const SkBitmap& bitmap, in createMippedProxyFromBitmap()
395 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( in createMippedProxyFromBitmap()
436 sk_sp<GrTextureProxy> GrProxyProvider::createProxy(const GrBackendFormat& format, in createProxy()
483 return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy( in createProxy()
489 …return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureProxy(format, dimensions, mipMapped, mi… in createProxy()
494 sk_sp<GrTextureProxy> GrProxyProvider::createCompressedTextureProxy( in createCompressedTextureProxy()
511 sk_sp<GrTextureProxy> proxy = this->createLazyProxy( in createCompressedTextureProxy()
536 sk_sp<GrTextureProxy> GrProxyProvider::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture()
569 …return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), UseAllocator::kNo, in wrapBackendTexture()
573 sk_sp<GrTextureProxy> GrProxyProvider::wrapCompressedBackendTexture( in wrapCompressedBackendTexture()
604 …return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(tex), UseAllocator::kNo, in wrapCompressedBackendTexture()
608 sk_sp<GrTextureProxy> GrProxyProvider::wrapRenderableBackendTexture( in wrapRenderableBackendTexture()
645 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), UseAllocator::kNo, in wrapRenderableBackendTexture()
647 …return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy(std::move(tex), UseAl… in wrapRenderableBackendTexture()
725 sk_sp<GrTextureProxy> GrProxyProvider::CreatePromiseProxy(GrContextThreadSafeProxy* threadSafeProxy, in CreatePromiseProxy()
747 auto proxy = sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(callback), in CreatePromiseProxy()
762 sk_sp<GrTextureProxy> GrProxyProvider::createLazyProxy(LazyInstantiateCallback&& callback, in createLazyProxy()
788 return assignTagToProxy(sk_sp<GrTextureProxy>(new GrTextureProxy(std::move(callback), in createLazyProxy()
845 sk_sp<GrTextureProxy> GrProxyProvider::MakeFullyLazyProxy(LazyInstantiateCallback&& callback, in MakeFullyLazyProxy()
866 return sk_sp<GrTextureProxy>(new GrTextureRenderTargetProxy( in MakeFullyLazyProxy()
871 return sk_sp<GrTextureProxy>( in MakeFullyLazyProxy()
872 new GrTextureProxy(std::move(callback), format, kLazyDims, GrMipmapped::kNo, in MakeFullyLazyProxy()
879 void GrProxyProvider::processInvalidUniqueKey(const GrUniqueKey& key, GrTextureProxy* proxy, in processInvalidUniqueKey()
884 void GrProxyProvider::processInvalidUniqueKeyImpl(const GrUniqueKey& key, GrTextureProxy* proxy, in processInvalidUniqueKeyImpl()
941 fUniquelyKeyedProxies.foreach([&](GrTextureProxy* proxy){ in orphanAllUniqueKeys()
947 fUniquelyKeyedProxies.foreach([&](GrTextureProxy* proxy){ in removeAllUniqueKeys()