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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1547793004: Make gpu black list work again on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Execute todo, send IPC directly from gpu_benchmarking_extension.cc and fixes variable names. Created 4 years, 10 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/gl_string_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 9833ff0dc113320dfa7b3be1d30a9424fdf28281..47d980666acb04d627a8aee64de96b17063946e2 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -874,6 +874,20 @@ int ChromeBrowserMainParts::PreCreateThreads() {
chrome_extra_parts_[i]->PreCreateThreads();
}
+ // It is important to call gl_string_manager()->Initialize() before starting
+ // the gpu process. Internally it properly setup the black listed features.
+ // Which it is used to decide whether to start or not the gpu process from
+ // BrowserMainLoop::BrowserThreadsStarted.
+
+ // Retrieve cached GL strings from local state and use them for GPU
+ // blacklist decisions.
+
+ if (g_browser_process->gl_string_manager())
+ g_browser_process->gl_string_manager()->Initialize();
+
+ // Create an instance of GpuModeManager to watch gpu mode pref change.
+ g_browser_process->gpu_mode_manager();
+
return result_code_;
}
@@ -1486,14 +1500,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// (requires supporting early exit).
PostProfileInit();
- // Retrieve cached GL strings from local state and use them for GPU
- // blacklist decisions.
- if (g_browser_process->gl_string_manager())
- g_browser_process->gl_string_manager()->Initialize();
-
- // Create an instance of GpuModeManager to watch gpu mode pref change.
- g_browser_process->gpu_mode_manager();
-
#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
// Show the First Run UI if this is the first time Chrome has been run on
// this computer, or we're being compelled to do so by a command line flag.
« no previous file with comments | « no previous file | chrome/browser/gpu/gl_string_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698