aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/debug/GrDebugGL.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-12 19:53:31 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-12 19:53:31 +0000
commit670ff9ae7f37356bff08b30a356bb0c52dc8d62e (patch)
treef5691db60fcfd4c1447c2107f38622f78fbd56fd /src/gpu/gl/debug/GrDebugGL.h
parentf3edf9fdc902465941cb763b9b4fdbfe7d004fd2 (diff)
Fixed uninitialized memory issue on Linux when running "gm --debuggl"
Diffstat (limited to 'src/gpu/gl/debug/GrDebugGL.h')
-rw-r--r--src/gpu/gl/debug/GrDebugGL.h12
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;