shm: move ‘size’ to the private buffer struct

This commit is contained in:
Daniel Eklöf 2021-07-15 22:30:08 +02:00
parent f5da62c462
commit 99ea47c97a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 18 additions and 18 deletions

3
shm.h
View file

@ -16,8 +16,7 @@ struct buffer {
int height;
int stride;
size_t size; /* Buffer size */
void *data; /* Raw data (TODO: rename) */
void *data;
struct wl_buffer *wl_buf;
pixman_image_t **pix;