diff options
author | 2012-04-12 19:53:31 +0000 | |
---|---|---|
committer | 2012-04-12 19:53:31 +0000 | |
commit | 670ff9ae7f37356bff08b30a356bb0c52dc8d62e (patch) | |
tree | f5691db60fcfd4c1447c2107f38622f78fbd56fd /src/gpu/gl/debug/GrDebugGL.h | |
parent | f3edf9fdc902465941cb763b9b4fdbfe7d004fd2 (diff) |
Fixed uninitialized memory issue on Linux when running "gm --debuggl"
http://codereview.appspot.com/6012052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3666 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/debug/GrDebugGL.h')
-rw-r--r-- | src/gpu/gl/debug/GrDebugGL.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpu/gl/debug/GrDebugGL.h b/src/gpu/gl/debug/GrDebugGL.h index d6af98ecad..4e714ee258 100644 --- a/src/gpu/gl/debug/GrDebugGL.h +++ b/src/gpu/gl/debug/GrDebugGL.h @@ -73,6 +73,16 @@ public: void useProgram(GrProgramObj *program); + void setPackRowLength(GrGLint packRowLength) { + fPackRowLength = packRowLength; + } + GrGLint getPackRowLength() const { return fPackRowLength; } + + void setUnPackRowLength(GrGLint unPackRowLength) { + fUnPackRowLength = unPackRowLength; + } + GrGLint getUnPackRowLength() const { return fUnPackRowLength; } + static GrDebugGL *getInstance() { // static GrDebugGL Obj; @@ -87,6 +97,8 @@ private: // the OpenGLES 2.0 spec says this must be >= 2 static const GrGLint kDefaultMaxTextureUnits = 8; + GrGLint fPackRowLength; + GrGLint fUnPackRowLength; GrGLuint fMaxTextureUnits; GrGLuint fCurTextureUnit; GrBufferObj * fArrayBuffer; |