Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index ba7ed6f47e93123ba12761cd8243ff7a9f5f1c3b..8e9407a458eb43c3c29ff30d297f4fe5925284a5 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -124,17 +124,17 @@ public: |
/** |
* Implements GrTextureProvider::wrapBackendTexture |
*/ |
- GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); |
+ sk_sp<GrTexture> wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); |
/** |
* Implements GrTextureProvider::wrapBackendRenderTarget |
*/ |
- GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&, GrWrapOwnership); |
+ sk_sp<GrRenderTarget> wrapBackendRenderTarget(const GrBackendRenderTargetDesc&,GrWrapOwnership); |
/** |
* Implements GrTextureProvider::wrapBackendTextureAsRenderTarget |
*/ |
- GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&); |
+ sk_sp<GrRenderTarget> wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&); |
/** |
* Creates a buffer in GPU memory. For a client-side buffer use GrBuffer::CreateCPUBacked. |
@@ -532,10 +532,10 @@ private: |
SkBudgeted budgeted, |
const SkTArray<GrMipLevel>& texels) = 0; |
- virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) = 0; |
- virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
- GrWrapOwnership) = 0; |
- virtual GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&) = 0; |
+ virtual sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) = 0; |
+ virtual sk_sp<GrRenderTarget> onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
+ GrWrapOwnership) = 0; |
+ virtual sk_sp<GrRenderTarget> onWrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&)=0; |
virtual GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, |
const void* data) = 0; |