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

Unified Diff: gpu/config/gpu_control_list.h

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 6 years, 9 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 | « content/gpu/gpu_main.cc ('k') | gpu/config/gpu_control_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list.h
diff --git a/gpu/config/gpu_control_list.h b/gpu/config/gpu_control_list.h
index 9510a5a01645131e4972de3011d198aa795f9470..80a95ba1a22f6afa59e56d9f3fd0b9261fd7edcc 100644
--- a/gpu/config/gpu_control_list.h
+++ b/gpu/config/gpu_control_list.h
@@ -254,6 +254,17 @@ class GPU_EXPORT GpuControlList {
int value2_;
};
+ class GPU_EXPORT BoolInfo {
+ public:
+ explicit BoolInfo(bool value);
+
+ // Determines if a given bool is included in the BoolInfo.
+ bool Contains(bool value) const;
+
+ private:
+ bool value_;
+ };
+
class GPU_EXPORT MachineModelInfo {
public:
MachineModelInfo(const std::string& name_op,
@@ -413,6 +424,8 @@ class GPU_EXPORT GpuControlList {
const std::string& int_string,
const std::string& int_string2);
+ void SetDirectRenderingInfo(bool value);
+
bool SetFeatures(const std::vector<std::string>& features,
const FeatureMap& feature_map,
bool supports_feature_type_all);
@@ -453,6 +466,7 @@ class GPU_EXPORT GpuControlList {
scoped_ptr<FloatInfo> perf_overall_info_;
scoped_ptr<MachineModelInfo> machine_model_info_;
scoped_ptr<IntInfo> gpu_count_info_;
+ scoped_ptr<BoolInfo> direct_rendering_info_;
std::set<int> features_;
std::vector<ScopedGpuControlListEntry> exceptions_;
};
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | gpu/config/gpu_control_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698