aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Ivan Molodetskikh <yalterz@gmail.com>2019-09-25 13:58:27 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-11-17 20:18:42 +0100
commit022df2542baa057b1965a7c7ee9c32e738f637d2 (patch)
treee650befe8f210c0fc44eb8fadf3b125c70a1b01f /include/sway/output.h
parentAdd -Wno-missing-braces (diff)
downloadsway-022df2542baa057b1965a7c7ee9c32e738f637d2.tar.gz
sway-022df2542baa057b1965a7c7ee9c32e738f637d2.tar.zst
sway-022df2542baa057b1965a7c7ee9c32e738f637d2.zip
output: add max_render_time
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 7d7057e1..741f5b5e 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -51,6 +51,11 @@ struct sway_output {
51 struct { 51 struct {
52 struct wl_signal destroy; 52 struct wl_signal destroy;
53 } events; 53 } events;
54
55 struct timespec last_presentation;
56 uint32_t refresh_nsec;
57 int max_render_time; // In milliseconds
58 struct wl_event_source *repaint_timer;
54}; 59};
55 60
56struct sway_output *output_create(struct wlr_output *wlr_output); 61struct sway_output *output_create(struct wlr_output *wlr_output);
@@ -71,6 +76,8 @@ typedef void (*sway_surface_iterator_func_t)(struct sway_output *output,
71 struct wlr_surface *surface, struct wlr_box *box, float rotation, 76 struct wlr_surface *surface, struct wlr_box *box, float rotation,
72 void *user_data); 77 void *user_data);
73 78
79int output_repaint_timer_handler(void *data);
80
74void output_damage_whole(struct sway_output *output); 81void output_damage_whole(struct sway_output *output);
75 82
76void output_damage_surface(struct sway_output *output, double ox, double oy, 83void output_damage_surface(struct sway_output *output, double ox, double oy,