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

Unified Diff: gpu/config/gpu_control_list.cc

Issue 241793002: Fix machine_model behaviors in gpu blacklist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | gpu/config/gpu_control_list_entry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index 21088a1e99230cb2cdcc028c3afe2569203b00aa..b69f7609971e5fbbf1cab2c41fce9b44a4b1d06a 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -1139,11 +1139,16 @@ bool GpuControlList::GpuControlListEntry::Contains(
!perf_overall_info_->Contains(gpu_info.performance_stats.overall)))
return false;
if (machine_model_info_.get() != NULL) {
+#if defined(OS_MACOSX)
Ken Russell (switch to Gerrit) 2014/04/17 22:24:57 Making this code conditionally compiled is really
std::vector<std::string> name_version;
base::SplitString(gpu_info.machine_model, ' ', &name_version);
if (name_version.size() == 2 &&
!machine_model_info_->Contains(name_version[0], name_version[1]))
return false;
+#else
+ if (!machine_model_info_->Contains(gpu_info.machine_model, std::string()))
+ return false;
+#endif
}
if (gpu_count_info_.get() != NULL &&
!gpu_count_info_->Contains(gpu_info.secondary_gpus.size() + 1))
« no previous file with comments | « no previous file | gpu/config/gpu_control_list_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698