aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-01 22:12:32 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-07-01 16:40:19 -0400
commita38baec1f89d423dea4be85a6233fed26d13732f (patch)
tree97803d29bafb5205981d9d1a7e3075a245a1f87b /include/wlr
parent29be2d47e44bd1ac74b91f393f6b1e60f01ffa51 (diff)
buffer: make enum wlr_buffer_cap public
Custom backends and renderers need to implement wlr_backend_impl.get_buffer_caps and wlr_renderer_impl.get_render_buffer_caps. They can't if enum wlr_buffer_cap isn't made public.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_buffer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h
index 47f17cce..d23cdce8 100644
--- a/include/wlr/types/wlr_buffer.h
+++ b/include/wlr/types/wlr_buffer.h
@@ -34,6 +34,18 @@ struct wlr_buffer_impl {
};
/**
+ * Buffer capabilities.
+ *
+ * These bits indicate the features supported by a wlr_buffer. There is one bit
+ * per function in wlr_buffer_impl.
+ */
+enum wlr_buffer_cap {
+ WLR_BUFFER_CAP_DATA_PTR = 1 << 0,
+ WLR_BUFFER_CAP_DMABUF = 1 << 1,
+ WLR_BUFFER_CAP_SHM = 1 << 2,
+};
+
+/**
* A buffer containing pixel data.
*
* A buffer has a single producer (the party who created the buffer) and