From ba3176a8f0a18527c0af5896f9d595d866e5ceeb Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Wed, 16 Dec 2009 18:19:46 +0000 Subject: 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 --- gpu/command_buffer/service/gles2_cmd_validation.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gpu/command_buffer/service/gles2_cmd_validation.cc (limited to 'gpu/command_buffer/service/gles2_cmd_validation.cc') 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 + +namespace gpu { +namespace gles2 { + +#include "gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h" + +} // namespace gles2 +} // namespace gpu + + + -- cgit v1.1