| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Constructor with workarounds taken from |command_line|. | 103 // Constructor with workarounds taken from |command_line|. |
| 104 FeatureInfo(const base::CommandLine& command_line, | 104 FeatureInfo(const base::CommandLine& command_line, |
| 105 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); | 105 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); |
| 106 | 106 |
| 107 // Initializes the feature information. Needs a current GL context. | 107 // Initializes the feature information. Needs a current GL context. |
| 108 bool Initialize(ContextType context_type, | 108 bool Initialize(ContextType context_type, |
| 109 const DisallowedFeatures& disallowed_features); | 109 const DisallowedFeatures& disallowed_features); |
| 110 | 110 |
| 111 // Helper that defaults to no disallowed features and a GLES2 context. | 111 // Helper that defaults to no disallowed features and a GLES2 context. |
| 112 bool InitializeForTesting(); | 112 bool InitializeForTesting(); |
| 113 // Helper that defaults to no disallowed Features. |
| 114 bool InitializeForTesting(ContextType context_type); |
| 113 // Helper that defaults to a GLES2 context. | 115 // Helper that defaults to a GLES2 context. |
| 114 bool InitializeForTesting(const DisallowedFeatures& disallowed_features); | 116 bool InitializeForTesting(const DisallowedFeatures& disallowed_features); |
| 115 | 117 |
| 116 const Validators* validators() const { | 118 const Validators* validators() const { |
| 117 return &validators_; | 119 return &validators_; |
| 118 } | 120 } |
| 119 | 121 |
| 120 ContextType context_type() const { return context_type_; } | 122 ContextType context_type() const { return context_type_; } |
| 121 | 123 |
| 122 const std::string& extensions() const { | 124 const std::string& extensions() const { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool disable_shader_translator_; | 196 bool disable_shader_translator_; |
| 195 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; | 197 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 199 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace gles2 | 202 } // namespace gles2 |
| 201 } // namespace gpu | 203 } // namespace gpu |
| 202 | 204 |
| 203 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 205 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |