mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-26 07:58:20 -04:00
presentation-time: implement support for presentation-time v3
See: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/459
This commit is contained in:
parent
a962d58727
commit
e6e57da34f
3 changed files with 15 additions and 1 deletions
|
|
@ -2037,6 +2037,12 @@ static void handle_page_flip(int fd, unsigned seq,
|
|||
present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
|
||||
}
|
||||
|
||||
if (conn->output.adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED) {
|
||||
present_flags |= WLR_OUTPUT_PRESENT_VARIABLE_RATE;
|
||||
} else {
|
||||
present_flags |= WLR_OUTPUT_PRESENT_FIXED_RATE;
|
||||
}
|
||||
|
||||
struct wlr_output_event_present present_event = {
|
||||
/* The DRM backend guarantees that the presentation event will be for
|
||||
* the last submitted frame. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue