summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gles2_cmd_utils.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 02:14:42 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-27 02:14:42 +0000
commit85c6d6739a81098c35cb35c3430f038ed4f5ddab (patch)
treee9302aab1b4368f28f3188087c2cb2d9521b103c /gpu/command_buffer/common/gles2_cmd_utils.h
parent85aa75c358eded70e4ebe9038d5133847d335b7f (diff)
downloadchromium_src-85c6d6739a81098c35cb35c3430f038ed4f5ddab.zip
chromium_src-85c6d6739a81098c35cb35c3430f038ed4f5ddab.tar.gz
chromium_src-85c6d6739a81098c35cb35c3430f038ed4f5ddab.tar.bz2
"/b/slave/chromium-rel-linux/build/src/gpu/command_buffer/client/gles2_demo_cc.cc:50:warning: 'length' may be used uninitialized in this function"
Revert 40193 - Added support for glGetString, glGetShaderSource, glGetProgramInfoLog and glGetShaderInfoLog This turned up lots of issues. * glGetShaderiv needed to be wrapped so it returns the size of the shader the user passed in. Not the munged shader sent to GL. * Another issue that came up is that client side validation is needed to ensure that the client side GLES2Implementation does not generate bad commands. For example, calling glUniform1iv with a negative count would generate a bad command. The service side would see that and think the program was malicious and stop processing commands. So, that means I had to add some client side validation and wrap glGetError on the client side so I can synthisize GL errors there. TEST=lots of unit tests. BUG=none Review URL: http://codereview.chromium.org/661220 TBR=gman@chromium.org Review URL: http://codereview.chromium.org/660229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_utils.h')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.h b/gpu/command_buffer/common/gles2_cmd_utils.h
index 99b17e5..b2da669 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -34,10 +34,6 @@ class GLES2Util {
static size_t GetGLTypeSizeForTexturesAndBuffers(uint32 type);
- static uint32 GLErrorToErrorBit(uint32 gl_error);
-
- static uint32 GLErrorBitToGLError(uint32 error_bit);
-
private:
int num_compressed_texture_formats_;
};