buffer: Move wlr_buffer_is_opaque to public header

Fixes: 1ee3ed43 ("buffer: Make wlr_buffer_is_opaque public")

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther 2025-01-26 00:16:40 +01:00
parent 1ee3ed4310
commit fa97f7f1f0
2 changed files with 9 additions and 9 deletions

View file

@ -50,15 +50,6 @@ struct wlr_dmabuf_buffer *dmabuf_buffer_create(
*/
bool dmabuf_buffer_drop(struct wlr_dmabuf_buffer *buffer);
/**
* Check whether a buffer is fully opaque.
*
* When true is returned, the buffer is guaranteed to be fully opaque, but the
* reverse is not true: false may be returned in cases where the buffer is fully
* opaque.
*/
bool wlr_buffer_is_opaque(struct wlr_buffer *buffer);
/**
* Creates a struct wlr_client_buffer from a given struct wlr_buffer by creating
* a texture from it, and copying its struct wl_resource.

View file

@ -109,6 +109,15 @@ bool wlr_buffer_get_shm(struct wlr_buffer *buffer,
*/
struct wlr_buffer *wlr_buffer_try_from_resource(struct wl_resource *resource);
/**
* Check whether a buffer is fully opaque.
*
* When true is returned, the buffer is guaranteed to be fully opaque, but the
* reverse is not true: false may be returned in cases where the buffer is fully
* opaque.
*/
bool wlr_buffer_is_opaque(struct wlr_buffer *buffer);
/**
* Buffer data pointer access flags.
*/