mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
swapchain: Add wlr_swapchain_has_buffer
This commit is contained in:
parent
d3a339a03e
commit
6e03d3015e
2 changed files with 8 additions and 2 deletions
|
|
@ -38,6 +38,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue