mirror of https://github.com/mpv-player/mpv
b59eaf57fe
Originally when presentation time was implemented, the frame callback and presentation feedback functions were called in each rendering api's separate backend (egl and vulkan). This meant that their respective structs were basically copy and pasted across both files. Plus later vo_wlshm started using frame callbacks too. Things got refactored a few times and it turns out there's actually no need to have these things separate anymore. The frame callback can just be initialized in vo_wayland_init and then everything else will follow from there. Just move all of this code to wayland_common and get rid of the duplication. Sidenote: This means that vo_wlshm can actually receive presentation feedback now. It's really simple to do so might as well. See the next commit. |
||
---|---|---|
.. | ||
common.h | ||
context.c | ||
context.h | ||
context_android.c | ||
context_wayland.c | ||
context_win.c | ||
context_xlib.c | ||
utils.c | ||
utils.h |