shm: add damage tracking to buffer

This commit is contained in:
Daniel Eklöf 2021-05-07 20:20:47 +02:00
parent c8b342ae51
commit 434c9c3a34
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 9 additions and 0 deletions

4
shm.h
View file

@ -7,6 +7,8 @@
#include <pixman.h>
#include <wayland-client.h>
#include "terminal.h"
struct buffer {
unsigned long cookie;
@ -34,6 +36,8 @@ struct buffer {
bool purge; /* True if this buffer should be destroyed */
int age;
tll (struct damage) scroll_damage;
pixman_region32_t dirty;
};
struct buffer *shm_get_buffer(