diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-10-08 20:49:12 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-22 11:57:19 +0200 |
commit | 6c3a71d9f6b7559653aa8a58893d76db27298ee2 (patch) | |
tree | e8ce989e6a85dee0dbfa91f3563b1182d511baf8 /include/wlr | |
parent | 3dc99ed2819465d3508ab1cfd7bd8e9857936b9a (diff) |
presentation-time: use a surface addon
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_presentation_time.h | 15 |
1 files changed, 2 insertions, 13 deletions
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 <time.h> #include <wayland-server-core.h> +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; |