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

Unified Diff: content/browser/browser_main_loop.cc

Issue 10832073: Only prelaunch the GPU process when accelerated compositor is not blacklisted. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
===================================================================
--- content/browser/browser_main_loop.cc (revision 149022)
+++ content/browser/browser_main_loop.cc (working copy)
@@ -442,6 +442,8 @@
// ChildProcess instance which is created by the renderer thread.
GpuDataManager* gpu_data_manager = content::GpuDataManager::GetInstance();
if (gpu_data_manager->GpuAccessAllowed() &&
+ (gpu_data_manager->GetGpuFeatureType() &
+ GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING) == 0 &&
!parsed_command_line_.HasSwitch(switches::kDisableGpuProcessPrelaunch) &&
!parsed_command_line_.HasSwitch(switches::kSingleProcess) &&
!parsed_command_line_.HasSwitch(switches::kInProcessGPU)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698