Lines Matching refs:proxy
40 sk_sp<GrTextureProxy> proxy; in refOriginalTextureProxy() local
43 proxy = proxyProvider->findOrCreateProxyByUniqueKey(fOriginalKey, kTopLeft_GrSurfaceOrigin); in refOriginalTextureProxy()
44 if (proxy && (!willBeMipped || GrMipMapped::kYes == proxy->mipMapped())) { in refOriginalTextureProxy()
45 return proxy; in refOriginalTextureProxy()
49 if (!proxy) { in refOriginalTextureProxy()
51 proxy = proxyProvider->createMipMapProxyFromBitmap(fBitmap); in refOriginalTextureProxy()
53 if (!proxy) { in refOriginalTextureProxy()
54 proxy = GrUploadBitmapToTextureProxy(proxyProvider, fBitmap); in refOriginalTextureProxy()
56 if (proxy) { in refOriginalTextureProxy()
58 proxyProvider->assignUniqueKeyToProxy(fOriginalKey, proxy.get()); in refOriginalTextureProxy()
60 if (!willBeMipped || GrMipMapped::kYes == proxy->mipMapped()) { in refOriginalTextureProxy()
61 SkASSERT(proxy->origin() == kTopLeft_GrSurfaceOrigin); in refOriginalTextureProxy()
66 return proxy; in refOriginalTextureProxy()
71 if (proxy) { in refOriginalTextureProxy()
73 SkASSERT(GrMipMapped::kNo == proxy->mipMapped()); in refOriginalTextureProxy()
77 if (auto mippedProxy = GrCopyBaseMipMapToTextureProxy(this->context(), proxy.get())) { in refOriginalTextureProxy()
86 SkASSERT(proxy->getUniqueKey() == fOriginalKey); in refOriginalTextureProxy()
87 proxyProvider->removeUniqueKeyFromProxy(proxy.get()); in refOriginalTextureProxy()
97 return proxy; in refOriginalTextureProxy()