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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2327073002: [WIP] Pass the single_process parameter to Ozone's initialization functions (Closed)
Patch Set: Created 4 years, 3 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_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 9d76301fb9a725ebfce565dfb6910cd0bd425621..edc1bdcf1f072a168315dc4c9b6dba7c2fbc6200 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -182,6 +182,13 @@ GpuChildThread::GpuChildThread(
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kInProcessGPU));
+#if defined(USE_OZONE)
rjkroege 2016/09/12 20:39:12 you shouldn't need this here.
fwang 2016/09/13 13:49:19 There is a comment in gpu_main.cc: "With in-proce
+ ui::OzonePlatform::InitParams ozoneInitParams;
+ ozoneInitParams.connector = nullptr;
+ ozoneInitParams.single_process = true;
+ ui::OzonePlatform::InitializeForGPU(ozoneInitParams);
+#endif
+
if (!gl::init::InitializeGLOneOff())
VLOG(1) << "gl::init::InitializeGLOneOff failed";

Powered by Google App Engine
This is Rietveld 408576698