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; | |
97 }; | 95 }; |
98 | 96 |
99 FeatureInfo(); | 97 FeatureInfo(); |
100 | 98 |
101 // Constructor with workarounds taken from the current process's CommandLine | 99 // Constructor with workarounds taken from the current process's CommandLine |
102 explicit FeatureInfo( | 100 explicit FeatureInfo( |
103 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); | 101 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); |
104 | 102 |
105 // Constructor with workarounds taken from |command_line|. | 103 // Constructor with workarounds taken from |command_line|. |
106 FeatureInfo(const base::CommandLine& command_line, | 104 FeatureInfo(const base::CommandLine& command_line, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 FeatureFlags feature_flags_; | 182 FeatureFlags feature_flags_; |
185 | 183 |
186 // Flags for Workarounds. | 184 // Flags for Workarounds. |
187 const GpuDriverBugWorkarounds workarounds_; | 185 const GpuDriverBugWorkarounds workarounds_; |
188 | 186 |
189 // Whether the command line switch kEnableUnsafeES3APIs is passed in. | 187 // Whether the command line switch kEnableUnsafeES3APIs is passed in. |
190 bool enable_unsafe_es3_apis_switch_; | 188 bool enable_unsafe_es3_apis_switch_; |
191 | 189 |
192 bool unsafe_es3_apis_enabled_; | 190 bool unsafe_es3_apis_enabled_; |
193 | 191 |
| 192 bool chromium_color_buffer_float_rgba_available_; |
| 193 bool chromium_color_buffer_float_rgb_available_; |
194 bool ext_color_buffer_float_available_; | 194 bool ext_color_buffer_float_available_; |
195 bool oes_texture_float_linear_available_; | 195 bool oes_texture_float_linear_available_; |
196 bool oes_texture_half_float_linear_available_; | 196 bool oes_texture_half_float_linear_available_; |
197 | 197 |
198 bool disable_shader_translator_; | 198 bool disable_shader_translator_; |
199 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 199 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
200 | 200 |
201 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 201 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
202 }; | 202 }; |
203 | 203 |
204 } // namespace gles2 | 204 } // namespace gles2 |
205 } // namespace gpu | 205 } // namespace gpu |
206 | 206 |
207 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 207 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |