aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-12 18:07:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-12 18:07:40 +0000
commit04215bac6cc3f7c05276adcc0ab47a6d799d4d25 (patch)
treeeb4c0ac447c3b0f5ce9ac85f1fc161db249d9f13 /shm.h
parentwayland: codespell: pre-empt -> preempt (diff)
parentchangelog: improved performance when double buffering (diff)
Merge branch 'double-buffering'
Closes #478
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/shm.h b/shm.h
index 2e819369..385a0e30 100644
--- a/shm.h
+++ b/shm.h
@@ -7,6 +7,8 @@
#include <pixman.h>
#include <wayland-client.h>
+#include "terminal.h"
+
struct buffer {
unsigned long cookie;
@@ -32,6 +34,11 @@ struct buffer {
bool scrollable;
bool purge; /* True if this buffer should be destroyed */
+
+ unsigned age;
+ struct damage *scroll_damage;
+ size_t scroll_damage_count;
+ pixman_region32_t dirty;
};
struct buffer *shm_get_buffer(