aboutsummaryrefslogtreecommitdiff
path: root/include/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-11 15:49:51 -0500
committerGitHub <noreply@github.com>2018-02-11 15:49:51 -0500
commit3497e53516d96ad67b26115e2e06218f68e1114d (patch)
tree0162715f2f4c8ca489f8417e6c934ef1d990099e /include/rootston
parent664d7bfe4eb55556be491bb87f8f1c0135d8cac5 (diff)
parenta9632341bfcb1e0a172d93c4fd331291a842332c (diff)
Merge pull request #625 from emersion/wlr-output-damage
Add wlr_output_damage
Diffstat (limited to 'include/rootston')
-rw-r--r--include/rootston/output.h16
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);