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 /wscript_build.py | |
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 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py index 63495689fb..9f47153413 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -130,6 +130,12 @@ def build(ctx): protocol = "unstable/idle-inhibit/idle-inhibit-unstable-v1", target = "video/out/wayland/idle-inhibit-v1.h") ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "stable/presentation-time/presentation-time", + target = "video/out/wayland/presentation-time.c") + ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR, + protocol = "stable/presentation-time/presentation-time", + target = "video/out/wayland/presentation-time.h") + ctx.wayland_protocol_code(proto_dir = ctx.env.WL_PROTO_DIR, protocol = "unstable/xdg-decoration/xdg-decoration-unstable-v1", target = "video/out/wayland/xdg-decoration-v1.c") ctx.wayland_protocol_header(proto_dir = ctx.env.WL_PROTO_DIR, @@ -499,6 +505,7 @@ def build(ctx): ( "video/out/vulkan/utils.c", "vulkan" ), ( "video/out/w32_common.c", "win32-desktop" ), ( "video/out/wayland/idle-inhibit-v1.c", "wayland" ), + ( "video/out/wayland/presentation-time.c", "wayland" ), ( "video/out/wayland/xdg-decoration-v1.c", "wayland" ), ( "video/out/wayland/xdg-shell.c", "wayland" ), ( "video/out/wayland_common.c", "wayland" ), |