shm: make max pool size user configurable (via a 'tweak' setting)

This commit is contained in:
Daniel Eklöf 2020-03-25 20:48:02 +01:00
parent e9f1638750
commit 0baa249d8b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 39 additions and 11 deletions

1
shm.h
View file

@ -37,6 +37,7 @@ struct buffer *shm_get_buffer(
struct wl_shm *shm, int width, int height, unsigned long cookie, bool scrollable);
void shm_fini(void);
void shm_set_max_pool_size(off_t max_pool_size);
bool shm_can_scroll(const struct buffer *buf);
bool shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows,
int top_margin, int top_keep_rows,