From 0de3701984ff3b09a804d8369dafc3cd5baefdcc Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 23 Mar 2020 20:45:27 +0100 Subject: 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. --- shm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shm.h') 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); -- cgit v1.3