diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2015-03-24 21:04:17 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2015-03-27 08:32:28 +0100 |
commit | 8fbff6ce0c097897a1f909dd02f72f4160f23d99 (patch) | |
tree | c3310dd7c638b32b1c05e3c4f60592e83c013433 /src/screen.h | |
parent | 37527851e4e957dc23562f99d5d81cca186d9537 (diff) | |
download | xfwm4-8fbff6ce0c097897a1f909dd02f72f4160f23d99.tar.gz |
Implement vsync using OpenGL
Bug: 11642
Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src/screen.h')
-rw-r--r-- | src/screen.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/screen.h b/src/screen.h index 9aeffc42c..596dafae7 100644 --- a/src/screen.h +++ b/src/screen.h @@ -32,12 +32,18 @@ #include <xfconf/xfconf.h> #include <libxfce4kbd-private/xfce-shortcuts-provider.h> - #ifdef HAVE_LIBSTARTUP_NOTIFICATION #define SN_API_NOT_YET_FROZEN #include <libsn/sn.h> #endif +#ifdef HAVE_COMPOSITOR +#ifdef HAVE_EPOXY +#include <epoxy/gl.h> +#include <epoxy/glx.h> +#endif /* HAVE_EPOXY */ +#endif /* HAVE_COMPOSITOR */ + #ifndef INC_SCREEN_H #define INC_SCREEN_H @@ -188,17 +194,12 @@ struct _ScreenInfo gboolean zoomed; guint zoom_timeout_id; -#ifdef HAVE_LIBDRM - gint dri_fd; - gboolean dri_secondary; - gboolean dri_success; - gint64 dri_time; - gint64 vblank_time; -#endif /* HAVE_LIBDRM */ - -#ifdef HAVE_RANDR - gint refresh_rate; -#endif /* HAVE_RANDR */ +#ifdef HAVE_EPOXY + gboolean has_glx_sync_control; + gboolean has_glx_video_sync; + GLXContext glx_context; + GLXWindow glx_window; +#endif /* HAVE_EPOXY */ #endif /* HAVE_COMPOSITOR */ }; |