summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_validation.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 18:19:46 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 18:19:46 +0000
commitba3176a8f0a18527c0af5896f9d595d866e5ceeb (patch)
treeb7b4d6422738a7c236ed0f87f0fb4405be2bfcdf /gpu/command_buffer/service/gles2_cmd_validation.cc
parent515ae05e6ed31da81d992c55d64378fe9b7b84c7 (diff)
downloadchromium_src-ba3176a8f0a18527c0af5896f9d595d866e5ceeb.zip
chromium_src-ba3176a8f0a18527c0af5896f9d595d866e5ceeb.tar.gz
chromium_src-ba3176a8f0a18527c0af5896f9d595d866e5ceeb.tar.bz2
Implements Validation for all GLenum arguments and
GLint arguments that have specific valid values. Will add unit tests in separate CL as I expect to be able to auto generate unit tests. TEST=none BUG=none Review URL: http://codereview.chromium.org/505016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_validation.cc')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_validation.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_validation.cc b/gpu/command_buffer/service/gles2_cmd_validation.cc
new file mode 100644
index 0000000..67d7fdc
--- /dev/null
+++ b/gpu/command_buffer/service/gles2_cmd_validation.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Contains various validation functions for the GLES2 service.
+
+// NOTE: We explicitly do NOT include gles2_cmd_validation.h because the
+// gl2.h included in here must NOT be the native one. This is because
+// some of the GLenum definitions exist only in GLES2 and not in Desktop
+// GL.
+#include <GLES2/gl2types.h>
+
+namespace gpu {
+namespace gles2 {
+
+#include "gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h"
+
+} // namespace gles2
+} // namespace gpu
+
+
+