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

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: version # 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
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..004346371e60b1c6b44ac9b442a4a5a8abe3fb33 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -110,13 +110,18 @@ 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_;
}
+ ContextType context_type() const { return context_type_; }
+
const std::string& extensions() const {
return extensions_;
}
@@ -148,6 +153,8 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
workarounds_.use_virtualized_gl_contexts;
}
+ bool IsWebGLContext() const;
+
private:
friend class base::RefCounted<FeatureInfo>;
friend class BufferManagerClientSideArraysTest;
@@ -162,6 +169,8 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
DisallowedFeatures disallowed_features_;
+ ContextType context_type_;
+
// The extensions string returned by glGetString(GL_EXTENSIONS);
std::string extensions_;
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698