diff options
author | dudemanguy <random342@airmail.cc> | 2019-10-10 14:14:40 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2019-10-20 15:34:57 +0000 |
commit | bedca07a021863d264e7c4c471cc30102899500f (patch) | |
tree | e998a9530b1ce6f26b013afe18cdbeeca2430fdb /video/out/vulkan/context.h | |
parent | 3568aed16424a4bc6424b43c74f580043496af75 (diff) | |
download | mpv-bedca07a021863d264e7c4c471cc30102899500f.tar.bz2 mpv-bedca07a021863d264e7c4c471cc30102899500f.tar.xz |
wayland: add presentation time
Use ust/msc/refresh values from wayland's presentation time in mpv's
ra_swapchain_fns.get_vsync for the wayland contexts.
Diffstat (limited to 'video/out/vulkan/context.h')
-rw-r--r-- | video/out/vulkan/context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vulkan/context.h b/video/out/vulkan/context.h index 90d7f8b8b2..0b420e2daa 100644 --- a/video/out/vulkan/context.h +++ b/video/out/vulkan/context.h @@ -4,6 +4,9 @@ #include "common.h" struct ra_vk_ctx_params { + // See ra_swapchain_fns.get_vsync. + void (*get_vsync)(struct ra_ctx *ctx, struct vo_vsync_info *info); + // In case something special needs to be done on the buffer swap. void (*swap_buffers)(struct ra_ctx *ctx); }; |