Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: gpu/command_buffer/service/feature_info.h

Issue 1374043005: Blacklist MSAA for GPU Raster on Intel GPUs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ignore_cr
Patch Set: comments + cleanup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 GLint max_copy_texture_chromium_size; 103 GLint max_copy_texture_chromium_size;
104 }; 104 };
105 105
106 // Constructor with workarounds taken from the current process's CommandLine 106 // Constructor with workarounds taken from the current process's CommandLine
107 FeatureInfo(); 107 FeatureInfo();
108 108
109 // Constructor with workarounds taken from |command_line| 109 // Constructor with workarounds taken from |command_line|
110 FeatureInfo(const base::CommandLine& command_line); 110 FeatureInfo(const base::CommandLine& command_line);
111 111
112 // Initializes the feature information. Needs a current GL context. 112 // Initializes the feature information. Needs a current GL context.
113 bool Initialize(); 113 bool Initialize(ContextType context_type,
114 bool Initialize(const DisallowedFeatures& disallowed_features); 114 const DisallowedFeatures& disallowed_features);
115
116 // Helper that defaults to no disallowed features and a GLES2 context.
117 bool InitializeForTesting();
115 118
116 const Validators* validators() const { 119 const Validators* validators() const {
117 return &validators_; 120 return &validators_;
118 } 121 }
119 122
120 const std::string& extensions() const { 123 const std::string& extensions() const {
121 return extensions_; 124 return extensions_;
122 } 125 }
123 126
124 const FeatureFlags& feature_flags() const { 127 const FeatureFlags& feature_flags() const {
(...skipping 30 matching lines...) Expand all
155 ~FeatureInfo(); 158 ~FeatureInfo();
156 159
157 void AddExtensionString(const char* s); 160 void AddExtensionString(const char* s);
158 void InitializeBasicState(const base::CommandLine* command_line); 161 void InitializeBasicState(const base::CommandLine* command_line);
159 void InitializeFeatures(); 162 void InitializeFeatures();
160 163
161 Validators validators_; 164 Validators validators_;
162 165
163 DisallowedFeatures disallowed_features_; 166 DisallowedFeatures disallowed_features_;
164 167
168 ContextType context_type_;
Zhenyao Mo 2015/09/30 23:50:13 If you define this here, then remove the one in gl
Zhenyao Mo 2015/09/30 23:51:37 Actually you can also remove it from the context_g
ericrk 2015/10/01 17:13:11 Done.
169
165 // The extensions string returned by glGetString(GL_EXTENSIONS); 170 // The extensions string returned by glGetString(GL_EXTENSIONS);
166 std::string extensions_; 171 std::string extensions_;
167 172
168 // Flags for some features 173 // Flags for some features
169 FeatureFlags feature_flags_; 174 FeatureFlags feature_flags_;
170 175
171 // Flags for Workarounds. 176 // Flags for Workarounds.
172 Workarounds workarounds_; 177 Workarounds workarounds_;
173 178
174 // Whether the command line switch kEnableUnsafeES3APIs is passed in. 179 // Whether the command line switch kEnableUnsafeES3APIs is passed in.
(...skipping 10 matching lines...) Expand all
185 bool disable_shader_translator_; 190 bool disable_shader_translator_;
186 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; 191 scoped_ptr<gfx::GLVersionInfo> gl_version_info_;
187 192
188 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 193 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
189 }; 194 };
190 195
191 } // namespace gles2 196 } // namespace gles2
192 } // namespace gpu 197 } // namespace gpu
193 198
194 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 199 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698