mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
render: swapchain: Add method to count free slots
This commit is contained in:
parent
cded7797f7
commit
1146650d71
2 changed files with 13 additions and 0 deletions
|
|
@ -46,5 +46,9 @@ struct wlr_buffer *wlr_swapchain_acquire(struct wlr_swapchain *swapchain);
|
|||
*/
|
||||
bool wlr_swapchain_has_buffer(struct wlr_swapchain *swapchain,
|
||||
struct wlr_buffer *buffer);
|
||||
/**
|
||||
* Count how many free slots there are left in the swapchain.
|
||||
*/
|
||||
int wlr_swapchain_count_free_slots(const struct wlr_swapchain *swapchain);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue