Index: ui/ozone/platform/x11/ozone_platform_x11.cc |
diff --git a/ui/ozone/platform/x11/ozone_platform_x11.cc b/ui/ozone/platform/x11/ozone_platform_x11.cc |
index cfaf098a2c2137525ee6e2f3e8abff9c77c155dd..eca7a3348e7e97cf97fe74d45a012356b8d48189 100644 |
--- a/ui/ozone/platform/x11/ozone_platform_x11.cc |
+++ b/ui/ozone/platform/x11/ozone_platform_x11.cc |
@@ -89,6 +89,7 @@ class OzonePlatformX11 : public OzonePlatform { |
} |
void InitializeGPU() override { |
+ event_source_.reset(new X11EventSourceLibevent(gfx::GetXDisplay())); |
surface_factory_ozone_.reset(new X11SurfaceFactory()); |
gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); |
} |
@@ -96,7 +97,6 @@ class OzonePlatformX11 : public OzonePlatform { |
private: |
// Objects in the Browser process. |
scoped_ptr<X11WindowManagerOzone> window_manager_; |
- scoped_ptr<X11EventSourceLibevent> event_source_; |
scoped_ptr<OverlayManagerOzone> overlay_manager_; |
scoped_ptr<InputController> input_controller_; |
scoped_ptr<X11CursorFactoryOzone> cursor_factory_ozone_; |
@@ -106,6 +106,7 @@ class OzonePlatformX11 : public OzonePlatform { |
scoped_ptr<GpuPlatformSupport> gpu_platform_support_; |
// Objects in both Browser and GPU process. |
+ scoped_ptr<X11EventSourceLibevent> event_source_; |
scoped_ptr<X11SurfaceFactory> surface_factory_ozone_; |
DISALLOW_COPY_AND_ASSIGN(OzonePlatformX11); |