OLD | NEW |
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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool IsES3Capable() const; | 141 bool IsES3Capable() const; |
142 void EnableES3Validators(); | 142 void EnableES3Validators(); |
143 | 143 |
144 bool IsES3Enabled() const { | 144 bool IsES3Enabled() const { |
145 return unsafe_es3_apis_enabled_; | 145 return unsafe_es3_apis_enabled_; |
146 } | 146 } |
147 | 147 |
148 bool disable_shader_translator() const { return disable_shader_translator_; } | 148 bool disable_shader_translator() const { return disable_shader_translator_; } |
149 | 149 |
150 bool IsWebGLContext() const; | 150 bool IsWebGLContext() const; |
| 151 bool IsWebGL2Context() const; |
151 | 152 |
152 void EnableCHROMIUMColorBufferFloatRGBA(); | 153 void EnableCHROMIUMColorBufferFloatRGBA(); |
153 void EnableCHROMIUMColorBufferFloatRGB(); | 154 void EnableCHROMIUMColorBufferFloatRGB(); |
154 void EnableEXTColorBufferFloat(); | 155 void EnableEXTColorBufferFloat(); |
155 void EnableOESTextureFloatLinear(); | 156 void EnableOESTextureFloatLinear(); |
156 void EnableOESTextureHalfFloatLinear(); | 157 void EnableOESTextureHalfFloatLinear(); |
157 | 158 |
158 private: | 159 private: |
159 friend class base::RefCounted<FeatureInfo>; | 160 friend class base::RefCounted<FeatureInfo>; |
160 friend class BufferManagerClientSideArraysTest; | 161 friend class BufferManagerClientSideArraysTest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool disable_shader_translator_; | 195 bool disable_shader_translator_; |
195 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 196 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
196 | 197 |
197 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 198 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
198 }; | 199 }; |
199 | 200 |
200 } // namespace gles2 | 201 } // namespace gles2 |
201 } // namespace gpu | 202 } // namespace gpu |
202 | 203 |
203 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 204 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |