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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/feature_info.h
diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
index 0f3f7094a68b6645de13b33166dd2c65d90b6d35..dafaedf93256957258f5f00a606ef4e8a16005aa 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -110,8 +110,11 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
FeatureInfo(const base::CommandLine& command_line);
// Initializes the feature information. Needs a current GL context.
- bool Initialize();
- bool Initialize(const DisallowedFeatures& disallowed_features);
+ bool Initialize(ContextType context_type,
+ const DisallowedFeatures& disallowed_features);
+
+ // Helper that defaults to no disallowed features and a GLES2 context.
+ bool InitializeForTesting();
const Validators* validators() const {
return &validators_;
@@ -162,6 +165,8 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
DisallowedFeatures disallowed_features_;
+ 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.
+
// The extensions string returned by glGetString(GL_EXTENSIONS);
std::string extensions_;

Powered by Google App Engine
This is Rietveld 408576698