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

Unified Diff: content/gpu/gpu_main.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_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 6e1c7326ec3a5858cf1c6b62da7a8d12e8ec14ed..4757687aa3361dac8fc6c4a28b38d6ab7dd2b0fe 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -87,6 +87,10 @@
#include <sanitizer/coverage_interface.h>
#endif
+#if defined(USE_OZONE)
+#include "ui/ozone/public/ozone_platform.h"
+#endif
+
namespace content {
namespace {
@@ -276,6 +280,14 @@ int GpuMain(const MainFunctionParams& parameters) {
// GpuChildThread before getting here.
gl_already_initialized = true;
}
+#if defined(USE_OZONE)
+ // TODO(fwang): Must plumb the shell::Connector* to here and pass into ozone.
+ ui::OzonePlatform::InitParams ozoneInitParams;
+ ozoneInitParams.single_process =
+ command_line.HasSwitch(switches::kInProcessGPU) ||
+ command_line.HasSwitch(switches::kSingleProcess);
+ ui::OzonePlatform::InitializeForGPU(ozoneInitParams);
+#endif
// Load and initialize the GL implementation and locate the GL entry points.
bool gl_initialized =

Powered by Google App Engine
This is Rietveld 408576698