diff options
| author | Simon Ser <contact@emersion.fr> | 2019-11-16 22:15:33 +0100 | 
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2019-11-17 00:12:59 +0100 | 
| commit | 6c649bab537f75ebf4def87be2a59c860bcc6859 (patch) | |
| tree | f1ef6d6c2896ac3f03f97a2b0be4003f4b214b67 /include | |
| parent | cde544de81b3da6368c3f88fe6d08df0b4bc198e (diff) | |
| download | wlroots-6c649bab537f75ebf4def87be2a59c860bcc6859.tar.xz | |
output: add wlr_output_event_present.commit_seq
This is set to the value of wlr_output.commit_seq when the frame has
been submitted. This allows tracking presentation with more then 1 full
frame of latency.
References: https://github.com/swaywm/wlroots/issues/1917
Diffstat (limited to 'include')
| -rw-r--r-- | include/wlr/types/wlr_output.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 97aa885e..e9aab373 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -173,6 +173,9 @@ enum wlr_output_present_flag {  struct wlr_output_event_present {  	struct wlr_output *output; +	// Frame submission for which this presentation event is for (see +	// wlr_output.commit_seq). +	uint32_t commit_seq;  	// Time when the content update turned into light the first time.  	struct timespec *when;  	// Vertical retrace counter. Zero if unavailable. | 
