diff options
author | Ivan Molodetskikh <[email protected]> | 2019-09-25 17:35:41 +0300 |
---|---|---|
committer | Simon Ser <[email protected]> | 2019-11-17 20:18:42 +0100 |
commit | bd9a53f1a3e7dba247aab0a4e4268724acc12c38 (patch) | |
tree | 1547b79a82b1c4e22512d0262cbb133a14ef10a3 /include/sway/surface.h | |
parent | 5421198489675d4700e68eb143c94cda914c8586 (diff) |
view: add max_render_time
Diffstat (limited to 'include/sway/surface.h')
-rw-r--r-- | include/sway/surface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/surface.h b/include/sway/surface.h index 06874af2..4da96c02 100644 --- a/include/sway/surface.h +++ b/include/sway/surface.h @@ -6,6 +6,13 @@ struct sway_surface { struct wlr_surface *wlr_surface; struct wl_listener destroy; + + /** + * This timer can be used for issuing delayed frame done callbacks (for + * example, to improve presentation latency). Its handler is set to a + * function that issues a frame done callback to this surface. + */ + struct wl_event_source *frame_done_timer; }; #endif |