mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
output: add max_render_time
This commit is contained in:
parent
cb905effde
commit
022df2542b
10 changed files with 166 additions and 22 deletions
|
|
@ -51,6 +51,11 @@ struct sway_output {
|
|||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
struct timespec last_presentation;
|
||||
uint32_t refresh_nsec;
|
||||
int max_render_time; // In milliseconds
|
||||
struct wl_event_source *repaint_timer;
|
||||
};
|
||||
|
||||
struct sway_output *output_create(struct wlr_output *wlr_output);
|
||||
|
|
@ -71,6 +76,8 @@ typedef void (*sway_surface_iterator_func_t)(struct sway_output *output,
|
|||
struct wlr_surface *surface, struct wlr_box *box, float rotation,
|
||||
void *user_data);
|
||||
|
||||
int output_repaint_timer_handler(void *data);
|
||||
|
||||
void output_damage_whole(struct sway_output *output);
|
||||
|
||||
void output_damage_surface(struct sway_output *output, double ox, double oy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue