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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2087333002: mus::GpuService: Support establish GpuChannel asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 8c90372bed2931a50d01a8404fec70de81c6e0ff..8e9faa56fb37a643a4b6a4c3a89c13f9d73669de 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -191,6 +191,10 @@
#include "gpu/vulkan/vulkan_implementation.h"
#endif
+#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
+#include "components/mus/common/gpu_service.h"
+#endif
+
// One of the linux specific headers defines this as a macro.
#ifdef DestroyAll
#undef DestroyAll
@@ -1171,8 +1175,11 @@ int BrowserMainLoop::BrowserThreadsStarted() {
#if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
// TODO(rockot): Remove the blocking wait for init.
// http://crbug.com/594852.
- if (MojoShellConnection::GetForProcess())
+ auto connection = MojoShellConnection::GetForProcess();
+ if (connection) {
WaitForMojoShellInitialize();
+ mus::GpuService::Initialize(connection->GetConnector());
+ }
#endif
}

Powered by Google App Engine
This is Rietveld 408576698