From c531795b8372eb0e69aa874476f3e96cd7c09dfc Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 29 Jul 2019 20:13:26 +0200 Subject: wip: initial multithreaded renderer --- shm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'shm.h') diff --git a/shm.h b/shm.h index 35360db6..9982cb8d 100644 --- a/shm.h +++ b/shm.h @@ -16,9 +16,10 @@ struct buffer { struct wl_buffer *wl_buf; - cairo_surface_t *cairo_surface; - cairo_t *cairo; + size_t copies; + cairo_surface_t **cairo_surface; + cairo_t **cairo; }; -struct buffer *shm_get_buffer(struct wl_shm *shm, int width, int height); +struct buffer *shm_get_buffer(struct wl_shm *shm, int width, int height, size_t copies); void shm_fini(void); -- cgit v1.3