summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2015-03-22 02:47:27 +0200
committerwm4 <wm4@nowhere>2015-03-23 21:53:32 +0100
commit3714430cdf0c1515da5dea9e3c098f02802a45ee (patch)
treed8b2c6071e959d3374cf4d1b68fc268dad14a161 /video/out/wayland_common.h
parentdd08aa7364e061132b795f6e55aaeeb2e4854b8e (diff)
downloadmpv-3714430cdf0c1515da5dea9e3c098f02802a45ee.tar.bz2
mpv-3714430cdf0c1515da5dea9e3c098f02802a45ee.tar.xz
vo_wayland: share frame callbacks.
Define frame callback logic in wayland_common.c As this should be used by opengl renderer as well. Preferably drawing should be skipped entierly when no frame callbacks are received. However, for now only swap buffers is skipped.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 5f0947f47d..d7c505290a 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -52,6 +52,11 @@ struct vo_wayland_state {
struct vo *vo;
struct mp_log* log;
+ struct {
+ struct wl_callback *callback;
+ bool pending;
+ } frame;
+
#if HAVE_GL_WAYLAND
struct {
EGLSurface egl_surface;