diff options
Diffstat (limited to 'src/gpu/GrProxyProvider.cpp')
-rw-r--r-- | src/gpu/GrProxyProvider.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/GrProxyProvider.cpp b/src/gpu/GrProxyProvider.cpp index 5091228a60..758a0d1601 100644 --- a/src/gpu/GrProxyProvider.cpp +++ b/src/gpu/GrProxyProvider.cpp @@ -456,7 +456,8 @@ sk_sp<GrTextureProxy> GrProxyProvider::wrapBackendTexture(const GrBackendTexture } sk_sp<GrTextureProxy> GrProxyProvider::wrapRenderableBackendTexture( - const GrBackendTexture& backendTex, GrSurfaceOrigin origin, int sampleCnt) { + const GrBackendTexture& backendTex, GrSurfaceOrigin origin, int sampleCnt, + GrWrapOwnership ownership) { if (this->isAbandoned()) { return nullptr; } @@ -483,13 +484,13 @@ sk_sp<GrTextureProxy> GrProxyProvider::wrapRenderableBackendTexture( } sk_sp<GrTextureProxy> proxy = this->createLazyProxy( - [backendTex, sampleCnt](GrResourceProvider* resourceProvider) { + [backendTex, sampleCnt, ownership](GrResourceProvider* resourceProvider) { if (!resourceProvider) { return sk_sp<GrTexture>(); } - sk_sp<GrTexture> tex = resourceProvider->wrapRenderableBackendTexture(backendTex, - sampleCnt); + sk_sp<GrTexture> tex = resourceProvider->wrapRenderableBackendTexture( + backendTex, sampleCnt, ownership); if (!tex) { return sk_sp<GrTexture>(); } |