| 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 =
|
|
|