aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/swapchain.h
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-19 16:21:54 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-12-03 05:29:05 +0000
commit6e03d3015e1668bd70266b0ee4b0720b86ca59c7 (patch)
treefadbbd37030501549d4119c2c9823081a2b59572 /include/wlr/render/swapchain.h
parentd3a339a03e320c397696d3d0f49567670146a7a4 (diff)
swapchain: Add wlr_swapchain_has_buffer
Diffstat (limited to 'include/wlr/render/swapchain.h')
-rw-r--r--include/wlr/render/swapchain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/render/swapchain.h b/include/wlr/render/swapchain.h
index 8bb8afc9..cb3aee9d 100644
--- a/include/wlr/render/swapchain.h
+++ b/include/wlr/render/swapchain.h
@@ -39,6 +39,12 @@ void wlr_swapchain_destroy(struct wlr_swapchain *swapchain);
struct wlr_buffer *wlr_swapchain_acquire(struct wlr_swapchain *swapchain,
int *age);
/**
+ * Returns true if this buffer has been created by this swapchain, and false
+ * otherwise.
+ */
+bool wlr_swapchain_has_buffer(struct wlr_swapchain *swapchain,
+ struct wlr_buffer *buffer);
+/**
* Mark the buffer as submitted for presentation. This needs to be called by
* swap chain users on frame boundaries.
*