aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-29 18:13:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-29 18:13:26 +0000
commitc531795b8372eb0e69aa874476f3e96cd7c09dfc (patch)
tree56c2cc2ff9476038d81e34c4c186e7d6562103c8 /shm.h
parentMerge branch 'use-freetype-to-render-glyphs' (diff)
wip: initial multithreaded renderer
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h7
1 files changed, 4 insertions, 3 deletions
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);