| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool ext_read_format_bgra; | 92 bool ext_read_format_bgra; |
| 93 bool desktop_srgb_support; | 93 bool desktop_srgb_support; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 FeatureInfo(); | 96 FeatureInfo(); |
| 97 | 97 |
| 98 // Constructor with workarounds taken from the current process's CommandLine | 98 // Constructor with workarounds taken from the current process's CommandLine |
| 99 explicit FeatureInfo( | 99 explicit FeatureInfo( |
| 100 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); | 100 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); |
| 101 | 101 |
| 102 // Constructor with workarounds taken from |command_line| | 102 // Constructor with workarounds taken from |command_line|. |
| 103 FeatureInfo(const base::CommandLine& command_line, | 103 FeatureInfo(const base::CommandLine& command_line, |
| 104 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); | 104 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); |
| 105 | 105 |
| 106 // Initializes the feature information. Needs a current GL context. | 106 // Initializes the feature information. Needs a current GL context. |
| 107 bool Initialize(ContextType context_type, | 107 bool Initialize(ContextType context_type, |
| 108 const DisallowedFeatures& disallowed_features); | 108 const DisallowedFeatures& disallowed_features); |
| 109 | 109 |
| 110 // Helper that defaults to no disallowed features and a GLES2 context. | 110 // Helper that defaults to no disallowed features and a GLES2 context. |
| 111 bool InitializeForTesting(); | 111 bool InitializeForTesting(); |
| 112 // Helper that defaults to a GLES2 context. | 112 // Helper that defaults to a GLES2 context. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Whether the command line switch kEnableCMAAShaders is passed in. | 196 // Whether the command line switch kEnableCMAAShaders is passed in. |
| 197 bool enable_cmaa_shaders_switch_; | 197 bool enable_cmaa_shaders_switch_; |
| 198 | 198 |
| 199 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 199 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 } // namespace gles2 | 202 } // namespace gles2 |
| 203 } // namespace gpu | 203 } // namespace gpu |
| 204 | 204 |
| 205 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 205 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |