diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-03-22 02:47:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-23 21:53:32 +0100 |
commit | 3714430cdf0c1515da5dea9e3c098f02802a45ee (patch) | |
tree | d8b2c6071e959d3374cf4d1b68fc268dad14a161 /video/out/wayland_common.h | |
parent | dd08aa7364e061132b795f6e55aaeeb2e4854b8e (diff) | |
download | mpv-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.h | 5 |
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; |