Index: src/gpu/GrTextureProvider.cpp |
diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp |
index 68a5540484030dbe592c4161b77c348c6a44b0d8..dba24b592647b3275b5932ad5ccb0ea23d8be069 100644 |
--- a/src/gpu/GrTextureProvider.cpp |
+++ b/src/gpu/GrTextureProvider.cpp |
@@ -158,8 +158,8 @@ GrTexture* GrTextureProvider::refScratchTexture(const GrSurfaceDesc& inDesc, |
return nullptr; |
} |
-GrTexture* GrTextureProvider::wrapBackendTexture(const GrBackendTextureDesc& desc, |
- GrWrapOwnership ownership) { |
+sk_sp<GrTexture> GrTextureProvider::wrapBackendTexture(const GrBackendTextureDesc& desc, |
+ GrWrapOwnership ownership) { |
ASSERT_SINGLE_OWNER |
if (this->isAbandoned()) { |
return nullptr; |
@@ -167,10 +167,12 @@ GrTexture* GrTextureProvider::wrapBackendTexture(const GrBackendTextureDesc& des |
return fGpu->wrapBackendTexture(desc, ownership); |
} |
-GrRenderTarget* GrTextureProvider::wrapBackendRenderTarget(const GrBackendRenderTargetDesc& desc) { |
+sk_sp<GrRenderTarget> GrTextureProvider::wrapBackendRenderTarget( |
+ const GrBackendRenderTargetDesc& desc) |
+{ |
ASSERT_SINGLE_OWNER |
- return this->isAbandoned() ? nullptr : fGpu->wrapBackendRenderTarget(desc, |
- kBorrow_GrWrapOwnership); |
+ return this->isAbandoned() ? nullptr |
+ : fGpu->wrapBackendRenderTarget(desc, kBorrow_GrWrapOwnership); |
} |
void GrTextureProvider::assignUniqueKeyToResource(const GrUniqueKey& key, GrGpuResource* resource) { |