aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-17 09:59:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-17 09:59:52 +0000
commitd21c4a02a030b63bc8cf04b40abed137a956b14d (patch)
tree266fc7199ac5a9d9782f1367a806e4b17fa30b3b /shm.h
parentvt: remove support for urxvt 'extended' line drawing character set (diff)
parentshm/render: there's no need to have one pixman image per thread (diff)
Merge branch 'pixman'
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/shm.h b/shm.h
index 9982cb8d..68013888 100644
--- a/shm.h
+++ b/shm.h
@@ -3,23 +3,22 @@
#include <stdbool.h>
#include <stddef.h>
-#include <cairo.h>
+#include <pixman.h>
#include <wayland-client.h>
struct buffer {
int width;
int height;
+ int stride;
bool busy;
size_t size;
void *mmapped;
struct wl_buffer *wl_buf;
-
- size_t copies;
- cairo_surface_t **cairo_surface;
- cairo_t **cairo;
+ pixman_image_t *pix;
};
-struct buffer *shm_get_buffer(struct wl_shm *shm, int width, int height, size_t copies);
+struct buffer *shm_get_buffer(
+ struct wl_shm *shm, int width, int height, size_t copies);
void shm_fini(void);