Lines Matching refs:proxy
67 // The image is being destroyed. If there is a stable copy proxy but we've been able to use
68 // the volatile proxy for all requests then we can skip the copy.
149 SkImageInfo::Make(view.proxy()->backingStoreDimensions(), std::move(info)),
170 SkImageInfo::Make(volatileSrc.proxy()->backingStoreDimensions(),
193 SkASSERT(volatileSrc.proxy()->asTextureProxy());
194 GrMipmapped mm = volatileSrc.proxy()->asTextureProxy()->mipmapped();
206 // We only attempt to make a dual-proxy image on a direct context. This optimziation requires
210 int targetCount = volatileSrc.proxy()->getTaskTargetCount();
245 sk_sp<GrSurfaceProxy> proxy = fChooser.chooseProxy(dContext);
246 return dContext->priv().flushSurface(proxy.get(),
264 sk_sp<GrSurfaceProxy> proxy = fChooser.switchToStableProxy();
266 if (!proxy->isInstantiated()) {
269 if (!proxy->instantiate(resourceProvider)) {
274 GrTexture* texture = proxy->peekTexture();
277 direct->priv().flushSurface(proxy.get());
398 sk_sp<GrTextureProxy> proxy = proxyProvider->wrapBackendTexture(
400 if (!proxy) {
404 GrSwizzle swizzle = rContext->priv().caps()->getReadSwizzle(proxy->backendFormat(), colorType);
405 GrSurfaceProxyView view(std::move(proxy), origin, swizzle);
433 sk_sp<GrTextureProxy> proxy = proxyProvider->wrapCompressedBackendTexture(
435 if (!proxy) {
442 GrSurfaceProxyView view(std::move(proxy), origin, GrSwizzle::RGBA());
518 sk_sp<GrTextureProxy> proxy = proxyProvider->createCompressedTextureProxy(
520 if (!proxy) {
523 GrSurfaceProxyView view(std::move(proxy));
613 auto proxy = SkImage_GpuBase::MakePromiseImageLazyProxy(threadSafeProxy.get(),
619 if (!proxy) {
623 GrSurfaceProxyView view(std::move(proxy), origin, swizzle);
670 sk_sp<GrTexture> texture = sk_ref_sp(view.proxy()->peekTexture());
673 dContext->priv().flushSurface(view.proxy());
744 sk_sp<GrTextureProxy> proxy = proxyProvider->wrapBackendTexture(
747 if (!proxy) {
752 GrSurfaceProxyView framebufferView(std::move(proxy), surfaceOrigin, swizzle);
796 direct->priv().flushSurface(view.proxy());