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>2011-07-07 23:28:11 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 23:28:11 +0000
commit302ce6d93bce9050a23f3d02cf7c36d2a9d9a153 (patch)
tree29a7f80e9011493ba920f57124259c77efb66f88 /gpu/command_buffer/service/gles2_cmd_validation.h
parent53d887fe6cc732e8baf180e8d76b7d03b6425659 (diff)
downloadchromium_src-302ce6d93bce9050a23f3d02cf7c36d2a9d9a153.zip
chromium_src-302ce6d93bce9050a23f3d02cf7c36d2a9d9a153.tar.gz
chromium_src-302ce6d93bce9050a23f3d02cf7c36d2a9d9a153.tar.bz2
Correct reporting of compressed texture formats and shader binary formats
NOTE: There's an issue here that before this change the largest number of values returned by glGetXXX was 4 and now it's undefined. The issue will come up if there are ever more than 15 because the GLES2Implementation only currently handles 15. See GLES2Implementation::kMaxSizeOfSimpleResult. http://code.google.com/p/chromium/issues/detail?id=88227 TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/7304002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91781 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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_validation.h b/gpu/command_buffer/service/gles2_cmd_validation.h
index d98212b..22ee2da 100644
--- a/gpu/command_buffer/service/gles2_cmd_validation.h
+++ b/gpu/command_buffer/service/gles2_cmd_validation.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -38,6 +38,10 @@ class ValueValidator {
valid_values_.end();
}
+ const std::vector<T>& GetValues() const {
+ return valid_values_;
+ }
+
private:
std::vector<T> valid_values_;
};