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

Unified Diff: content/gpu/gpu_main.cc

Issue 1043233003: ozone: Add post message loop initialization hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 76a6020e0a2a5929f7b865f862c3807111b737b1..23eab12142a26e43135e7b2f95481064fc09a87b 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -47,6 +47,10 @@
#include "sandbox/win/src/sandbox.h"
#endif
+#if defined(USE_OZONE)
+#include "ui/ozone/public/ozone_platform.h"
+#endif
+
#if defined(USE_X11)
#include "ui/base/x/x11_util.h"
#endif
@@ -284,6 +288,10 @@ int GpuMain(const MainFunctionParams& parameters) {
}
#endif
+#if defined(USE_OZONE)
+ ui::OzonePlatform::InitializeForGPUPostMainLoop();
+#endif
+
#if defined(OS_LINUX)
initialized_gl_context = true;
#if !defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698