mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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.
This commit is contained in:
parent
29be2d47e4
commit
a38baec1f8
14 changed files with 12 additions and 24 deletions
|
|
@ -72,18 +72,6 @@ struct wlr_dmabuf_buffer *dmabuf_buffer_create(
|
|||
*/
|
||||
bool dmabuf_buffer_drop(struct wlr_dmabuf_buffer *buffer);
|
||||
|
||||
/**
|
||||
* 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,
|
||||
};
|
||||
|
||||
/**
|
||||
* Get a pointer to a region of memory referring to the buffer's underlying
|
||||
* storage. The format and stride can be used to interpret the memory region
|
||||
|
|
|
|||
|
|
@ -33,6 +33,18 @@ struct wlr_buffer_impl {
|
|||
void (*end_data_ptr_access)(struct wlr_buffer *buffer);
|
||||
};
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue