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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 bool ext_texture_rg; | 85 bool ext_texture_rg; |
86 bool chromium_image_ycbcr_420v; | 86 bool chromium_image_ycbcr_420v; |
87 bool chromium_image_ycbcr_422; | 87 bool chromium_image_ycbcr_422; |
88 bool emulate_primitive_restart_fixed_index; | 88 bool emulate_primitive_restart_fixed_index; |
89 bool ext_render_buffer_format_bgra8888; | 89 bool ext_render_buffer_format_bgra8888; |
90 bool ext_multisample_compatibility; | 90 bool ext_multisample_compatibility; |
91 bool ext_blend_func_extended; | 91 bool ext_blend_func_extended; |
92 bool ext_read_format_bgra; | 92 bool ext_read_format_bgra; |
93 bool desktop_srgb_support; | 93 bool desktop_srgb_support; |
94 bool arb_es3_compatibility; | 94 bool arb_es3_compatibility; |
| 95 bool chromium_color_buffer_float_rgb = false; |
| 96 bool chromium_color_buffer_float_rgba = false; |
95 }; | 97 }; |
96 | 98 |
97 FeatureInfo(); | 99 FeatureInfo(); |
98 | 100 |
99 // Constructor with workarounds taken from the current process's CommandLine | 101 // Constructor with workarounds taken from the current process's CommandLine |
100 explicit FeatureInfo( | 102 explicit FeatureInfo( |
101 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); | 103 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); |
102 | 104 |
103 // Constructor with workarounds taken from |command_line|. | 105 // Constructor with workarounds taken from |command_line|. |
104 FeatureInfo(const base::CommandLine& command_line, | 106 FeatureInfo(const base::CommandLine& command_line, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 FeatureFlags feature_flags_; | 192 FeatureFlags feature_flags_; |
191 | 193 |
192 // Flags for Workarounds. | 194 // Flags for Workarounds. |
193 const GpuDriverBugWorkarounds workarounds_; | 195 const GpuDriverBugWorkarounds workarounds_; |
194 | 196 |
195 // Whether the command line switch kEnableUnsafeES3APIs is passed in. | 197 // Whether the command line switch kEnableUnsafeES3APIs is passed in. |
196 bool enable_unsafe_es3_apis_switch_; | 198 bool enable_unsafe_es3_apis_switch_; |
197 | 199 |
198 bool unsafe_es3_apis_enabled_; | 200 bool unsafe_es3_apis_enabled_; |
199 | 201 |
200 bool chromium_color_buffer_float_rgba_available_; | |
201 bool chromium_color_buffer_float_rgb_available_; | |
202 bool ext_color_buffer_float_available_; | 202 bool ext_color_buffer_float_available_; |
203 bool oes_texture_float_linear_available_; | 203 bool oes_texture_float_linear_available_; |
204 bool oes_texture_half_float_linear_available_; | 204 bool oes_texture_half_float_linear_available_; |
205 | 205 |
206 bool disable_shader_translator_; | 206 bool disable_shader_translator_; |
207 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 207 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 209 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace gles2 | 212 } // namespace gles2 |
213 } // namespace gpu | 213 } // namespace gpu |
214 | 214 |
215 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 215 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |