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

Unified Diff: ui/events/platform/x11/x11_event_source_libevent.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fixes. Created 4 years, 8 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/events/platform/x11/x11_event_source_libevent.cc
diff --git a/ui/events/platform/x11/x11_event_source_libevent.cc b/ui/events/platform/x11/x11_event_source_libevent.cc
index cadf12152e244d0393caa96ea84060cea702dce9..cde765daccebdc5b3aa6d9fde84afd1142c067f7 100644
--- a/ui/events/platform/x11/x11_event_source_libevent.cc
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc
@@ -137,6 +137,12 @@ X11EventSourceLibevent::X11EventSourceLibevent(XDisplay* display)
X11EventSourceLibevent::~X11EventSourceLibevent() {}
+// static
+X11EventSourceLibevent* X11EventSourceLibevent::GetInstance() {
+ return static_cast<X11EventSourceLibevent*>(
+ PlatformEventSource::GetInstance());
+}
+
void X11EventSourceLibevent::AddXEventDispatcher(XEventDispatcher* dispatcher) {
dispatchers_xevent_.AddObserver(dispatcher);
}

Powered by Google App Engine
This is Rietveld 408576698