aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-23 19:45:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-23 19:45:27 +0000
commit0de3701984ff3b09a804d8369dafc3cd5baefdcc (patch)
tree7230436425622eb1f1b58d8392dc42fb6400e9e3 /shm.h
parentrender: scroll: use shm scrolling even though we have a top region (diff)
shm: scroll: move top/bottom region handling from renderer into shm
This allows us to restore the regions without copying the contents to temporary memory.
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 6801ed93..6637182c 100644
--- a/shm.h
+++ b/shm.h
@@ -33,7 +33,9 @@ struct buffer *shm_get_buffer(
void shm_fini(void);
bool shm_can_scroll(void);
-bool shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows);
+bool shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows,
+ int top_margin, int top_keep_rows,
+ int bottom_margin, int bottom_keep_rows);
void shm_purge(struct wl_shm *shm, unsigned long cookie);