aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2019-08-17 21:57:47 -0700
committerSimon Ser <contact@emersion.fr>2019-09-19 19:44:19 +0300
commit020a33e057bd2c5b6250149b0e955d6874ecb1b7 (patch)
treeb61cb8009a92ecccb9f3456ae5d80d6f16521289 /include
parentc808613287956cabad4d5a719b5e02cfadfe1152 (diff)
presentation_feedback: add the sampled state
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_presentation_time.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_presentation_time.h b/include/wlr/types/wlr_presentation_time.h
index c80f6966..bf1d3ac2 100644
--- a/include/wlr/types/wlr_presentation_time.h
+++ b/include/wlr/types/wlr_presentation_time.h
@@ -31,9 +31,15 @@ struct wlr_presentation_feedback {
struct wl_resource *resource;
struct wlr_presentation *presentation;
struct wlr_surface *surface;
- bool committed;
struct wl_list link; // wlr_presentation::feedbacks
+ // 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;
+
struct wl_listener surface_commit;
struct wl_listener surface_destroy;
};
@@ -55,5 +61,7 @@ void wlr_presentation_destroy(struct wlr_presentation *presentation);
void wlr_presentation_send_surface_presented(
struct wlr_presentation *presentation, struct wlr_surface *surface,
struct wlr_presentation_event *event);
+void wlr_presentation_surface_sampled(
+ struct wlr_presentation *presentation, struct wlr_surface *surface);
#endif