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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 bool IsWebGLContext() const; | 154 bool IsWebGLContext() const; |
155 bool IsWebGL1OrES2Context() const; | 155 bool IsWebGL1OrES2Context() const; |
156 bool IsWebGL2OrES3Context() const; | 156 bool IsWebGL2OrES3Context() const; |
157 | 157 |
158 void EnableCHROMIUMColorBufferFloatRGBA(); | 158 void EnableCHROMIUMColorBufferFloatRGBA(); |
159 void EnableCHROMIUMColorBufferFloatRGB(); | 159 void EnableCHROMIUMColorBufferFloatRGB(); |
160 void EnableEXTColorBufferFloat(); | 160 void EnableEXTColorBufferFloat(); |
161 void EnableOESTextureFloatLinear(); | 161 void EnableOESTextureFloatLinear(); |
162 void EnableOESTextureHalfFloatLinear(); | 162 void EnableOESTextureHalfFloatLinear(); |
163 | 163 |
| 164 bool ext_color_buffer_float_available() const { |
| 165 return ext_color_buffer_float_available_; |
| 166 } |
| 167 |
| 168 bool oes_texture_float_linear_available() const { |
| 169 return oes_texture_float_linear_available_; |
| 170 } |
| 171 |
164 private: | 172 private: |
165 friend class base::RefCounted<FeatureInfo>; | 173 friend class base::RefCounted<FeatureInfo>; |
166 friend class BufferManagerClientSideArraysTest; | 174 friend class BufferManagerClientSideArraysTest; |
167 | 175 |
168 ~FeatureInfo(); | 176 ~FeatureInfo(); |
169 | 177 |
170 void AddExtensionString(const char* s); | 178 void AddExtensionString(const char* s); |
171 void InitializeBasicState(const base::CommandLine* command_line); | 179 void InitializeBasicState(const base::CommandLine* command_line); |
172 void InitializeFeatures(); | 180 void InitializeFeatures(); |
173 | 181 |
(...skipping 24 matching lines...) Expand all Loading... |
198 bool disable_shader_translator_; | 206 bool disable_shader_translator_; |
199 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 207 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
200 | 208 |
201 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 209 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
202 }; | 210 }; |
203 | 211 |
204 } // namespace gles2 | 212 } // namespace gles2 |
205 } // namespace gpu | 213 } // namespace gpu |
206 | 214 |
207 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 215 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |