Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: gpu/command_buffer/service/feature_info.h

Issue 987123003: Add a mechanism for command buffer to conditionally allow ES3 enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 const Workarounds& workarounds() const { 124 const Workarounds& workarounds() const {
125 return workarounds_; 125 return workarounds_;
126 } 126 }
127 127
128 const gfx::GLVersionInfo& gl_version_info() const { 128 const gfx::GLVersionInfo& gl_version_info() const {
129 DCHECK(gl_version_info_.get()); 129 DCHECK(gl_version_info_.get());
130 return *(gl_version_info_.get()); 130 return *(gl_version_info_.get());
131 } 131 }
132 132
133 bool IsES3Capable() const;
134 void EnableES3Validators();
135
133 private: 136 private:
134 friend class base::RefCounted<FeatureInfo>; 137 friend class base::RefCounted<FeatureInfo>;
135 friend class BufferManagerClientSideArraysTest; 138 friend class BufferManagerClientSideArraysTest;
136 139
137 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; 140 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap;
138 ValidatorMap texture_format_validators_; 141 ValidatorMap texture_format_validators_;
139 142
140 ~FeatureInfo(); 143 ~FeatureInfo();
141 144
142 void AddExtensionString(const char* s); 145 void AddExtensionString(const char* s);
(...skipping 15 matching lines...) Expand all
158 161
159 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; 162 scoped_ptr<gfx::GLVersionInfo> gl_version_info_;
160 163
161 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 164 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
162 }; 165 };
163 166
164 } // namespace gles2 167 } // namespace gles2
165 } // namespace gpu 168 } // namespace gpu
166 169
167 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 170 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698