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

Unified Diff: gpu/ipc/service/gpu_init.cc

Issue 2749873002: Move Ozone GPU initialization. (Closed)
Patch Set: Move to gpu_init. Created 3 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: gpu/ipc/service/gpu_init.cc
diff --git a/gpu/ipc/service/gpu_init.cc b/gpu/ipc/service/gpu_init.cc
index 8ed804264d88d94cdba97ca0541e1bc0b5921360..576f140fe23c6702bd4bac188bbfc8c6eebddb20 100644
--- a/gpu/ipc/service/gpu_init.cc
+++ b/gpu/ipc/service/gpu_init.cc
@@ -22,6 +22,10 @@
#include "ui/gl/gl_switches.h"
#include "ui/gl/init/gl_factory.h"
+#if defined(USE_OZONE)
+#include "ui/ozone/public/ozone_platform.h"
+#endif
+
namespace gpu {
namespace {
@@ -175,6 +179,13 @@ bool GpuInit::InitializeAndStartSandbox(const base::CommandLine& command_line) {
base::TimeTicks before_initialize_one_off = base::TimeTicks::Now();
+#if defined(USE_OZONE)
+ // Initialize Ozone GPU after the watchdog and sandbox are started.
piman 2017/03/15 19:48:21 The sandbox is generally not started at this point
kylechar 2017/03/15 20:59:08 Thanks for the clarification, I changed the commen
+ ui::OzonePlatform::InitParams params;
+ params.single_process = false;
+ ui::OzonePlatform::InitializeForGPU(params);
+#endif
+
// Load and initialize the GL implementation and locate the GL entry points if
// needed. This initialization may have already happened if running in the
// browser process, for example.

Powered by Google App Engine
This is Rietveld 408576698