Index: src/gpu/gl/GrGpuGL.h |
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h |
index e50ff9b2ea002f149cc0ee6eedd7854c6e289bf2..9fa0c81faaed60cc6136a8a896d188da0f5dcb18 100644 |
--- a/src/gpu/gl/GrGpuGL.h |
+++ b/src/gpu/gl/GrGpuGL.h |
@@ -274,9 +274,14 @@ private: |
const void* data, |
size_t rowBytes); |
- // helper for onCreateCompressedTexture |
+ // helper for onCreateCompressedTexture. If width and height are |
+ // set to -1, then this function will use desc.fWidth and desc.fHeight |
+ // for the size of the data. |
robertphillips
2014/06/11 19:11:12
Dox for what 'isNewTexture' means?
krajcevski
2014/06/11 19:20:47
Done.
|
bool uploadCompressedTexData(const GrGLTexture::Desc& desc, |
- const void* data); |
+ const void* data, |
+ bool isNewTexture = true, |
+ int left = 0, int top = 0, |
+ int width = -1, int height = -1); |
bool createRenderTargetObjects(int width, int height, |
GrGLuint texID, |