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

Unified Diff: chrome/browser/gpu_blacklist.h

Issue 10832044: Enhance GPU blacklist so we can also blacklist GPUs other than the primary one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_blacklist.h
===================================================================
--- chrome/browser/gpu_blacklist.h (revision 148446)
+++ chrome/browser/gpu_blacklist.h (working copy)
@@ -272,6 +272,13 @@
kMultiGpuStyleNone
};
+ enum MultiGpuCategory {
+ kMultiGpuCategoryPrimary,
+ kMultiGpuCategorySecondary,
+ kMultiGpuCategoryAny,
+ kMultiGpuCategoryNone
+ };
+
GpuBlacklistEntry();
~GpuBlacklistEntry() { }
@@ -290,6 +297,8 @@
bool SetMultiGpuStyle(const std::string& multi_gpu_style_string);
+ bool SetMultiGpuCategory(const std::string& multi_gpu_category_string);
+
bool SetDriverVendorInfo(const std::string& vendor_op,
const std::string& vendor_value);
@@ -327,6 +336,9 @@
static MultiGpuStyle StringToMultiGpuStyle(const std::string& style);
+ static MultiGpuCategory StringToMultiGpuCategory(
+ const std::string& category);
+
uint32 id_;
bool disabled_;
std::string description_;
@@ -336,6 +348,7 @@
uint32 vendor_id_;
std::vector<uint32> device_id_list_;
MultiGpuStyle multi_gpu_style_;
+ MultiGpuCategory multi_gpu_category_;
scoped_ptr<StringInfo> driver_vendor_info_;
scoped_ptr<VersionInfo> driver_version_info_;
scoped_ptr<VersionInfo> driver_date_info_;
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698