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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 11047011: Figure out whether we have enough information to make the final GPU blacklisting decision. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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: content/browser/gpu/gpu_data_manager_impl.cc
===================================================================
--- content/browser/gpu/gpu_data_manager_impl.cc (revision 160744)
+++ content/browser/gpu/gpu_data_manager_impl.cc (working copy)
@@ -299,7 +299,15 @@
// than those in the preliminary gpu feature flags because the latter work
// through renderer commandline switches.
uint32 mask = ~(preliminary_gpu_feature_type_);
- return (gpu_feature_type_ & mask) == 0;
+ if ((gpu_feature_type_ & mask) != 0)
+ return false;
+
+ if (gpu_feature_type_ == content::GPU_FEATURE_TYPE_ALL) {
+ if (gpu_blacklist_.get() && !gpu_blacklist_->needs_more_info())
+ return false;
+ }
+
+ return true;
}
void GpuDataManagerImpl::HandleGpuSwitch() {
@@ -411,6 +419,9 @@
command_line->AppendSwitchASCII(switches::kSupportsDualGpus, "false");
}
+ if (!gpu_blacklist_.get() || !gpu_blacklist_->needs_more_info())
+ command_line->AppendSwitch(switches::kSkipGpuFullInfoCollection);
+
if (!swiftshader_path.empty())
command_line->AppendSwitchPath(switches::kSwiftShaderPath,
swiftshader_path);
« no previous file with comments | « content/browser/gpu/gpu_blacklist_unittest.cc ('k') | content/browser/gpu/gpu_data_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698