Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 147c4810200ea45daa192aa6e585fcc98f049ad8..fd134eae2ca8d1eb0f7ce738482da04ce1e66f5d 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -97,16 +97,21 @@ public: |
const void* srcData, size_t rowBytes); |
/** |
- * Implements GrContext::wrapBackendTexture |
+ * Implements GrTextureProvider::wrapBackendTexture |
*/ |
GrTexture* wrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership); |
/** |
- * Implements GrContext::wrapBackendTexture |
+ * Implements GrTextureProvider::wrapBackendTexture |
*/ |
GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&, GrWrapOwnership); |
/** |
+ * Implements GrTextureProvider::wrapBackendTextureAsRenderTarget |
+ */ |
+ GrRenderTarget* wrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&, GrWrapOwnership); |
+ |
+ /** |
* Creates a vertex buffer. |
* |
* @param size size in bytes of the vertex buffer |
@@ -512,6 +517,8 @@ private: |
virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership) = 0; |
virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
GrWrapOwnership) = 0; |
+ virtual GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDesc&, |
+ GrWrapOwnership) = 0; |
virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) = 0; |
virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) = 0; |
virtual GrTransferBuffer* onCreateTransferBuffer(size_t size, TransferType type) = 0; |