mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
buffer: document wlr_buffer_get_dmabuf DMA-BUF lifetime
This commit is contained in:
parent
78d6eed6b3
commit
a8a4a12c4b
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ void wlr_buffer_unlock(struct wlr_buffer *buffer);
|
||||||
/**
|
/**
|
||||||
* Reads the DMA-BUF attributes of the buffer. If this buffer isn't a DMA-BUF,
|
* Reads the DMA-BUF attributes of the buffer. If this buffer isn't a DMA-BUF,
|
||||||
* returns false.
|
* returns false.
|
||||||
|
*
|
||||||
|
* The returned DMA-BUF attributes are valid for the lifetime of the
|
||||||
|
* wlr_buffer. The caller isn't responsible for cleaning up the DMA-BUF
|
||||||
|
* attributes.
|
||||||
*/
|
*/
|
||||||
bool wlr_buffer_get_dmabuf(struct wlr_buffer *buffer,
|
bool wlr_buffer_get_dmabuf(struct wlr_buffer *buffer,
|
||||||
struct wlr_dmabuf_attributes *attribs);
|
struct wlr_dmabuf_attributes *attribs);
|
||||||
|
|
Loading…
Reference in a new issue