From fa97f7f1f0b27b6dbcf4636b892a6bb52a93d1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 26 Jan 2025 00:16:40 +0100 Subject: [PATCH] buffer: Move wlr_buffer_is_opaque to public header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 1ee3ed43 ("buffer: Make wlr_buffer_is_opaque public") Signed-off-by: Guido Günther --- include/types/wlr_buffer.h | 9 --------- include/wlr/types/wlr_buffer.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/types/wlr_buffer.h b/include/types/wlr_buffer.h index 98d5d3aea..9d882d47d 100644 --- a/include/types/wlr_buffer.h +++ b/include/types/wlr_buffer.h @@ -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. diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index fadc560a3..19a8b73b6 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -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. */