From 6c3a71d9f6b7559653aa8a58893d76db27298ee2 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 8 Oct 2021 20:49:12 +0300 Subject: presentation-time: use a surface addon --- include/wlr/types/wlr_presentation_time.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_presentation_time.h b/include/wlr/types/wlr_presentation_time.h index 51570c04..8f805814 100644 --- a/include/wlr/types/wlr_presentation_time.h +++ b/include/wlr/types/wlr_presentation_time.h @@ -14,12 +14,13 @@ #include #include +struct wlr_surface; + struct wlr_output; struct wlr_output_event_present; struct wlr_presentation { struct wl_global *global; - struct wl_list feedbacks; // wlr_presentation_feedback::link clockid_t clock; struct { @@ -31,27 +32,15 @@ struct wlr_presentation { struct wlr_presentation_feedback { struct wlr_presentation *presentation; - struct wlr_surface *surface; // NULL if the surface has been destroyed - struct wl_list link; // wlr_presentation::feedbacks struct wl_list resources; // wl_resource_get_link - // The surface contents were committed. - bool committed; - // The surface contents were sampled by the compositor and are to be - // presented on the next flip. Can become true only after committed becomes - // true. - bool sampled; - bool presented; - // Only when the wlr_presentation_surface_sampled_on_output helper has been // called struct wlr_output *output; bool output_committed; uint32_t output_commit_seq; - struct wl_listener surface_commit; - struct wl_listener surface_destroy; struct wl_listener output_commit; struct wl_listener output_present; struct wl_listener output_destroy; -- cgit v1.2.3