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

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

Issue 2749873002: Move Ozone GPU initialization. (Closed)
Patch Set: Fixes. 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
« no previous file with comments | « content/gpu/in_process_gpu_thread.cc ('k') | ui/gl/init/gl_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..af5fb220275ea0949fc1a82406a99792e722839a 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,14 @@ 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 in case it hangs. The sandbox
+ // may also have started at this point.
+ 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.
« no previous file with comments | « content/gpu/in_process_gpu_thread.cc ('k') | ui/gl/init/gl_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698