From 3714430cdf0c1515da5dea9e3c098f02802a45ee Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 22 Mar 2015 02:47:27 +0200 Subject: 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. --- video/out/wayland_common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/out/wayland_common.h') 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; -- cgit v1.2.3