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

Unified Diff: ui/gl/gl_surface_glx_x11.h

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use #define 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
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_surface_glx_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx_x11.h
diff --git a/ui/gl/gl_surface_glx_x11.h b/ui/gl/gl_surface_glx_x11.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f7b427fe583c7ec83bfc5ea1d16884d7df8ee77
--- /dev/null
+++ b/ui/gl/gl_surface_glx_x11.h
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GL_GL_SURFACE_GLX_X11_H_
+#define UI_GL_GL_SURFACE_GLX_X11_H_
+
+#include "base/macros.h"
+#include "ui/events/platform/platform_event_dispatcher.h"
+#include "ui/gfx/native_widget_types.h"
+#include "ui/gl/gl_export.h"
+#include "ui/gl/gl_surface_glx.h"
+
+namespace gl {
+
+// X11 specific implementation of GLX surface. Registers as a
+// PlatformEventDispatcher to handle XEvents.
+class GL_EXPORT GLSurfaceGLXX11 : public NativeViewGLSurfaceGLX,
+ public ui::PlatformEventDispatcher {
+ public:
+ explicit GLSurfaceGLXX11(gfx::AcceleratedWidget window);
+
+ protected:
+ ~GLSurfaceGLXX11() override;
+
+ // NativeViewGLSurfaceGLX:
+ void RegisterEvents() override;
+ void UnregisterEvents() override;
+
+ // PlatformEventDispatcher:
+ bool CanDispatchEvent(const ui::PlatformEvent& event) override;
+ uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GLSurfaceGLXX11);
+};
+
+} // namespace gl
+
+#endif // UI_GL_GL_SURFACE_GLX_X11_H_
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_surface_glx_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698