| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 bool use_chromium_screen_space_antialiasing_via_shaders = false; | 45 bool use_chromium_screen_space_antialiasing_via_shaders = false; |
| 46 bool oes_standard_derivatives = false; | 46 bool oes_standard_derivatives = false; |
| 47 bool oes_egl_image_external = false; | 47 bool oes_egl_image_external = false; |
| 48 bool nv_egl_stream_consumer_external = false; | 48 bool nv_egl_stream_consumer_external = false; |
| 49 bool oes_depth24 = false; | 49 bool oes_depth24 = false; |
| 50 bool oes_compressed_etc1_rgb8_texture = false; | 50 bool oes_compressed_etc1_rgb8_texture = false; |
| 51 bool packed_depth24_stencil8 = false; | 51 bool packed_depth24_stencil8 = false; |
| 52 bool npot_ok = false; | 52 bool npot_ok = false; |
| 53 bool enable_texture_float_linear = false; | 53 bool enable_texture_float_linear = false; |
| 54 bool enable_texture_half_float_linear = false; | 54 bool enable_texture_half_float_linear = false; |
| 55 bool enable_color_buffer_float = false; | 55 bool enable_color_buffer_half_float = false; |
| 56 bool angle_translated_shader_source = false; | 56 bool angle_translated_shader_source = false; |
| 57 bool angle_pack_reverse_row_order = false; | 57 bool angle_pack_reverse_row_order = false; |
| 58 bool arb_texture_rectangle = false; | 58 bool arb_texture_rectangle = false; |
| 59 bool angle_instanced_arrays = false; | 59 bool angle_instanced_arrays = false; |
| 60 bool occlusion_query = false; | 60 bool occlusion_query = false; |
| 61 bool occlusion_query_boolean = false; | 61 bool occlusion_query_boolean = false; |
| 62 bool use_arb_occlusion_query2_for_occlusion_query_boolean = false; | 62 bool use_arb_occlusion_query2_for_occlusion_query_boolean = false; |
| 63 bool use_arb_occlusion_query_for_occlusion_query_boolean = false; | 63 bool use_arb_occlusion_query_for_occlusion_query_boolean = false; |
| 64 bool native_vertex_array_object = false; | 64 bool native_vertex_array_object = false; |
| 65 bool ext_texture_format_astc = false; | 65 bool ext_texture_format_astc = false; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 bool disable_shader_translator() const { return disable_shader_translator_; } | 160 bool disable_shader_translator() const { return disable_shader_translator_; } |
| 161 | 161 |
| 162 bool IsWebGLContext() const; | 162 bool IsWebGLContext() const; |
| 163 bool IsWebGL1OrES2Context() const; | 163 bool IsWebGL1OrES2Context() const; |
| 164 bool IsWebGL2OrES3Context() const; | 164 bool IsWebGL2OrES3Context() const; |
| 165 | 165 |
| 166 void EnableCHROMIUMColorBufferFloatRGBA(); | 166 void EnableCHROMIUMColorBufferFloatRGBA(); |
| 167 void EnableCHROMIUMColorBufferFloatRGB(); | 167 void EnableCHROMIUMColorBufferFloatRGB(); |
| 168 void EnableEXTColorBufferFloat(); | 168 void EnableEXTColorBufferFloat(); |
| 169 void EnableEXTColorBufferHalfFloat(); |
| 169 void EnableOESTextureFloatLinear(); | 170 void EnableOESTextureFloatLinear(); |
| 170 void EnableOESTextureHalfFloatLinear(); | 171 void EnableOESTextureHalfFloatLinear(); |
| 171 | 172 |
| 172 bool ext_color_buffer_float_available() const { | 173 bool ext_color_buffer_float_available() const { |
| 173 return ext_color_buffer_float_available_; | 174 return ext_color_buffer_float_available_; |
| 174 } | 175 } |
| 175 | 176 |
| 176 bool oes_texture_float_linear_available() const { | 177 bool oes_texture_float_linear_available() const { |
| 177 return oes_texture_float_linear_available_; | 178 return oes_texture_float_linear_available_; |
| 178 } | 179 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 209 bool disable_shader_translator_; | 210 bool disable_shader_translator_; |
| 210 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 211 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
| 211 | 212 |
| 212 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 213 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 } // namespace gles2 | 216 } // namespace gles2 |
| 216 } // namespace gpu | 217 } // namespace gpu |
| 217 | 218 |
| 218 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 219 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |