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

Unified Diff: ui/ozone/platform/x11/ozone_platform_x11.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/refactor. Created 4 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
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);

Powered by Google App Engine
This is Rietveld 408576698