aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-08 08:25:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-12 18:06:15 +0000
commit34becf0df0915b3ed9534057c6e8c96d88625789 (patch)
tree0d9d5bd8dbd655b894ac657e084725b1b43e3fe7 /shm.h
parentrender: subtract current frame’s damage when there’s no scroll damage (diff)
render: code cleanup, log double buffering time
* Break out cursor cell dirtying to separate functions * Break out handling of double buffering * Handle buffers with age > 1 (we’re swapping between more than 2 buffers) * Detect full screen repaints, and skip re-applying old frame’s damage * Use an allocated array insted of a tll list for old frame’s scroll damage * When logging frame rendering time, including the amount used for double buffering.
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/shm.h b/shm.h
index 034b87e1..385a0e30 100644
--- a/shm.h
+++ b/shm.h
@@ -35,8 +35,9 @@ struct buffer {
bool scrollable;
bool purge; /* True if this buffer should be destroyed */
- int age;
- tll (struct damage) scroll_damage;
+ unsigned age;
+ struct damage *scroll_damage;
+ size_t scroll_damage_count;
pixman_region32_t dirty;
};