diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 12:21:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-28 14:43:23 -0400 |
commit | d39bda76c4007c42452a81883fefc671b816a74b (patch) | |
tree | 509a9c669bf2679085e27a1ff1b0c95526abf14c /include/pool-buffer.h | |
parent | Refactor configure/ack configure/commit flow (diff) | |
download | sway-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.h | 21 |
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 | |||
9 | struct 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 | |||
18 | struct 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 | ||