aboutsummaryrefslogtreecommitdiffstats
path: root/include/pool-buffer.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 12:21:50 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 14:43:23 -0400
commitd39bda76c4007c42452a81883fefc671b816a74b (patch)
tree509a9c669bf2679085e27a1ff1b0c95526abf14c /include/pool-buffer.h
parentRefactor configure/ack configure/commit flow (diff)
downloadsway-d39bda76c4007c42452a81883fefc671b816a74b.tar.gz
sway-d39bda76c4007c42452a81883fefc671b816a74b.tar.zst
sway-d39bda76c4007c42452a81883fefc671b816a74b.zip
Address review comments
Diffstat (limited to 'include/pool-buffer.h')
-rw-r--r--include/pool-buffer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/pool-buffer.h b/include/pool-buffer.h
new file mode 100644
index 00000000..cdebd64d
--- /dev/null
+++ b/include/pool-buffer.h
@@ -0,0 +1,21 @@
1#ifndef _SWAY_BUFFERS_H
2#define _SWAY_BUFFERS_H
3#include <cairo/cairo.h>
4#include <pango/pangocairo.h>
5#include <stdbool.h>
6#include <stdint.h>
7#include <wayland-client.h>
8
9struct pool_buffer {
10 struct wl_buffer *buffer;
11 cairo_surface_t *surface;
12 cairo_t *cairo;
13 PangoContext *pango;
14 uint32_t width, height;
15 bool busy;
16};
17
18struct pool_buffer *get_next_buffer(struct wl_shm *shm,
19 struct pool_buffer pool[static 2], uint32_t width, uint32_t height);
20
21#endif