diff options
author | emersion <contact@emersion.fr> | 2018-02-11 12:49:30 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-02-11 12:49:30 +0100 |
commit | ec837e3c9e08a8334fa7093d7f39af2a2f11e122 (patch) | |
tree | cef1eaab483d21a105dce4ef3d4b07d067cf41aa /include/rootston/output.h | |
parent | 664d7bfe4eb55556be491bb87f8f1c0135d8cac5 (diff) |
Introduce wlr_output_damage
Diffstat (limited to 'include/rootston/output.h')
-rw-r--r-- | include/rootston/output.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/rootston/output.h b/include/rootston/output.h index 3a6d3cc7..7f42904f 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -4,13 +4,7 @@ #include <time.h> #include <pixman.h> #include <wayland-server.h> - -/** - * Damage tracking requires to keep track of previous frames' damage. To allow - * damage tracking to work with triple buffering, a history of two frames is - * required. - */ -#define ROOTS_OUTPUT_PREVIOUS_DAMAGE_LEN 2 +#include <wlr/types/wlr_output_damage.h> struct roots_desktop; @@ -22,15 +16,9 @@ struct roots_output { struct roots_view *fullscreen_view; struct timespec last_frame; - pixman_region32_t damage; // in ouput-local coordinates - - // circular queue for previous damage - pixman_region32_t previous_damage[ROOTS_OUTPUT_PREVIOUS_DAMAGE_LEN]; - size_t previous_damage_idx; + struct wlr_output_damage *damage; struct wl_listener frame; - struct wl_listener mode; - struct wl_listener needs_swap; }; void output_add_notify(struct wl_listener *listener, void *data); |