Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: src/gpu/gl/GrGpuGL.h

Issue 326383003: Allow compressed texture data to be updated. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More explicit Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL.cpp » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL.cpp » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698