Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 8d483d179c26d2b1f284543b03c5ca9a1133d852..3bb84a448586b6d563b1cbddf6b9ca115802ad1e 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -97,12 +97,12 @@ public: |
/** |
* Implements GrContext::wrapBackendTexture |
*/ |
- GrTexture* wrapBackendTexture(const GrBackendTextureDesc&); |
+ GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); |
/** |
* Implements GrContext::wrapBackendTexture |
*/ |
- GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&); |
+ GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&, GrWrapOwnership); |
/** |
* Creates a vertex buffer. |
@@ -401,8 +401,9 @@ private: |
virtual GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, |
GrGpuResource::LifeCycle lifeCycle, |
const void* srcData) = 0; |
- virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) = 0; |
- virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) = 0; |
+ virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) = 0; |
+ virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
+ GrWrapOwnership) = 0; |
virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) = 0; |
virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) = 0; |