Index: src/gpu/gl/GrGpuGL.h |
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h |
index f548af5f6aabd4cecd853f1c6af289287e478b46..cfb8b520ac3c03085a04fee415752004c649efd4 100644 |
--- a/src/gpu/gl/GrGpuGL.h |
+++ b/src/gpu/gl/GrGpuGL.h |
@@ -124,6 +124,8 @@ private: |
virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, |
const void* srcData, |
size_t rowBytes) SK_OVERRIDE; |
+ virtual GrTexture* onCreateCompressedTexture(const GrTextureDesc& desc, |
+ const void* srcData) SK_OVERRIDE; |
virtual GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE; |
virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE; |
virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; |
@@ -265,6 +267,10 @@ private: |
const void* data, |
size_t rowBytes); |
+ // helper for onCreateCompressedTexture |
+ bool uploadCompressedTexData(const GrGLTexture::Desc& desc, |
+ const void* data); |
+ |
bool createRenderTargetObjects(int width, int height, |
GrGLuint texID, |
GrGLRenderTarget::Desc* desc); |