aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-21 16:55:49 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-08-21 15:45:10 +0000
commit9b8cd1f5d6c1158b13108f271fc8d6891105e6e4 (patch)
treef43907a73d802a7fa2581feeddc636cad95760cd
parent6c1a2a66578e2166f1695e998b05dac822481311 (diff)
buffer: make wlr_client_buffer functions private
We want to eventually remove this. Let's make sure compositors don't start using either of these functions.
-rw-r--r--include/types/wlr_buffer.h15
-rw-r--r--include/wlr/types/wlr_buffer.h15
2 files changed, 15 insertions, 15 deletions
diff --git a/include/types/wlr_buffer.h b/include/types/wlr_buffer.h
index f34b03a8..947ccde7 100644
--- a/include/types/wlr_buffer.h
+++ b/include/types/wlr_buffer.h
@@ -59,4 +59,19 @@ bool dmabuf_buffer_drop(struct wlr_dmabuf_buffer *buffer);
*/
bool 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.
+ */
+struct wlr_client_buffer *wlr_client_buffer_create(struct wlr_buffer *buffer,
+ struct wlr_renderer *renderer);
+/**
+ * Try to update the buffer's content.
+ *
+ * Fails if there's more than one reference to the buffer or if the texture
+ * isn't mutable.
+ */
+bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer,
+ struct wlr_buffer *next, const pixman_region32_t *damage);
+
#endif
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h
index 1201bdd1..7c362922 100644
--- a/include/wlr/types/wlr_buffer.h
+++ b/include/wlr/types/wlr_buffer.h
@@ -156,13 +156,6 @@ struct wlr_client_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.
- */
-struct wlr_client_buffer *wlr_client_buffer_create(struct wlr_buffer *buffer,
- struct wlr_renderer *renderer);
-
-/**
* Get a client buffer from a generic buffer. If the buffer isn't a client
* buffer, returns NULL.
*/
@@ -171,13 +164,5 @@ struct wlr_client_buffer *wlr_client_buffer_get(struct wlr_buffer *buffer);
* Check if a resource is a wl_buffer resource.
*/
bool wlr_resource_is_buffer(struct wl_resource *resource);
-/**
- * Try to update the buffer's content.
- *
- * Fails if there's more than one reference to the buffer or if the texture
- * isn't mutable.
- */
-bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer,
- struct wlr_buffer *next, const pixman_region32_t *damage);
#endif