[gtk+/gdk-egl-x11: 3/4] gdk/x11: Move GdkX11GLContext definitions into the source
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-egl-x11: 3/4] gdk/x11: Move GdkX11GLContext definitions into the source
- Date: Tue, 6 Dec 2016 17:29:15 +0000 (UTC)
commit e963c987968d613058581292518ec8dded6a70e1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Dec 1 16:28:12 2016 +0000
gdk/x11: Move GdkX11GLContext definitions into the source
There's no need to have the instance and class structures in the private
header: nothing accesses them directly.
gdk/x11/gdkglcontext-x11.c | 23 ++++++++++++++++++++++-
gdk/x11/gdkglcontext-x11.h | 23 -----------------------
2 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index da3d864..c724c4c 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -39,17 +39,38 @@
#include <cairo/cairo-xlib.h>
+#include <epoxy/gl.h>
#include <epoxy/glx.h>
+struct _GdkX11GLContext
+{
+ GdkGLContext parent_instance;
+
+ GLXContext glx_context;
+ GLXFBConfig glx_config;
+ GLXDrawable drawable;
+
+ guint is_attached : 1;
+ guint is_direct : 1;
+ guint do_frame_sync : 1;
+
+ guint do_blit_swap : 1;
+};
+
+struct _GdkX11GLContextClass
+{
+ GdkGLContextClass parent_class;
+};
+
G_DEFINE_TYPE (GdkX11GLContext, gdk_x11_gl_context, GDK_TYPE_GL_CONTEXT)
typedef struct {
GdkDisplay *display;
GLXDrawable glx_drawable;
+ GLXWindow dummy_glx;
Window dummy_xwin;
- GLXWindow dummy_glx;
guint32 last_frame_counter;
} DrawableInfo;
diff --git a/gdk/x11/gdkglcontext-x11.h b/gdk/x11/gdkglcontext-x11.h
index 44cb0d5..2843668 100644
--- a/gdk/x11/gdkglcontext-x11.h
+++ b/gdk/x11/gdkglcontext-x11.h
@@ -24,9 +24,6 @@
#include <X11/X.h>
#include <X11/Xlib.h>
-#include <epoxy/gl.h>
-#include <epoxy/glx.h>
-
#include "gdkglcontextprivate.h"
#include "gdkdisplayprivate.h"
#include "gdkvisual.h"
@@ -36,26 +33,6 @@
G_BEGIN_DECLS
-struct _GdkX11GLContext
-{
- GdkGLContext parent_instance;
-
- GLXContext glx_context;
- GLXFBConfig glx_config;
- GLXDrawable drawable;
-
- guint is_attached : 1;
- guint is_direct : 1;
- guint do_frame_sync : 1;
-
- guint do_blit_swap : 1;
-};
-
-struct _GdkX11GLContextClass
-{
- GdkGLContextClass parent_class;
-};
-
gboolean gdk_x11_screen_init_gl (GdkScreen *screen);
GdkGLContext * gdk_x11_window_create_gl_context (GdkWindow *window,
gboolean attached,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]