From e959b882d52788158fd8cd5db1bc32ef1d93533b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 16 Nov 2019 21:05:46 +0100 Subject: backend/wayland: add support for presentation-time --- include/backend/wayland.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/backend') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index f2cf55ed..0bd4a617 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -35,6 +35,7 @@ struct wlr_wl_backend { struct xdg_wm_base *xdg_wm_base; struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1; struct zwp_pointer_gestures_v1 *zwp_pointer_gestures_v1; + struct wp_presentation *presentation; struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1; struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1; struct wl_seat *seat; @@ -46,6 +47,13 @@ struct wlr_wl_backend { struct wlr_drm_format_set linux_dmabuf_v1_formats; }; +struct wlr_wl_presentation_feedback { + struct wlr_wl_output *output; + struct wl_list link; + struct wp_presentation_feedback *feedback; + uint32_t commit_seq; +}; + struct wlr_wl_output { struct wlr_output wlr_output; @@ -61,6 +69,7 @@ struct wlr_wl_output { EGLSurface egl_surface; struct wl_buffer *pending_wl_buffer, *current_wl_buffer; struct wlr_buffer *current_buffer; + struct wl_list presentation_feedbacks; uint32_t enter_serial; -- cgit v1.2.3