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