From 027ca4fb855f3dff4cba1c907c92c509b82e6fe8 Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Mon, 14 Oct 2019 12:16:42 -0500 Subject: wayland: add various render-related options The newest wayland changes have some new logic that make sense to expose to users as configurable options. --- video/out/wayland_common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'video/out/wayland_common.h') diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 606d9ed218..0e9705cce8 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -25,6 +25,11 @@ #include "vo.h" #include "input/event.h" +struct wayland_opts { + int frame_offset; + int disable_vsync; +}; + struct vo_wayland_sync { int64_t ust; int64_t msc; @@ -56,6 +61,7 @@ struct vo_wayland_state { struct wl_shm *shm; struct wl_compositor *compositor; struct wl_registry *registry; + struct wayland_opts *opts; /* State */ struct mp_rect geometry; @@ -136,7 +142,7 @@ void vo_wayland_check_events(struct vo *vo); void vo_wayland_uninit(struct vo *vo); void vo_wayland_wakeup(struct vo *vo); void vo_wayland_wait_events(struct vo *vo, int64_t until_time_us); -void vo_wayland_wait_frame(struct vo_wayland_state *wl); +void vo_wayland_wait_frame(struct vo_wayland_state *wl, int frame_offset); void wayland_sync_swap(struct vo_wayland_state *wl); void vo_wayland_sync_shift(struct vo_wayland_state *wl); void queue_new_sync(struct vo_wayland_state *wl); -- cgit v1.2.3