summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_validation.h
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.h
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.h')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_validation.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_validation.h b/gpu/command_buffer/service/gles2_cmd_validation.h
new file mode 100644
index 0000000..aa44e9c
--- /dev/null
+++ b/gpu/command_buffer/service/gles2_cmd_validation.h
@@ -0,0 +1,21 @@
+// 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.
+
+#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_
+#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_
+
+#include "gpu/command_buffer/common/gles2_cmd_format.h"
+
+namespace gpu {
+namespace gles2 {
+
+#include "gpu/command_buffer/service/gles2_cmd_validation_autogen.h"
+
+} // namespace gles2
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_H_
+