From 302ce6d93bce9050a23f3d02cf7c36d2a9d9a153 Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Thu, 7 Jul 2011 23:28:11 +0000 Subject: 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 --- gpu/command_buffer/service/gles2_cmd_validation.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gpu/command_buffer/service/gles2_cmd_validation.h') 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_; }; -- cgit v1.1