summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-10-14 12:16:42 -0500
committerDudemanguy <random342@airmail.cc>2019-10-20 15:34:57 +0000
commit027ca4fb855f3dff4cba1c907c92c509b82e6fe8 (patch)
tree7dc4946579de357aa5fe14f1ec46e735905db33a /video/out/wayland_common.h
parentbedca07a021863d264e7c4c471cc30102899500f (diff)
downloadmpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.bz2
mpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.xz
wayland: add various render-related options
The newest wayland changes have some new logic that make sense to expose to users as configurable options.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h8
1 files changed, 7 insertions, 1 deletions
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);