mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
render/swapchain: switch to init()/finish()
This commit is contained in:
parent
ef49909da8
commit
53757b18bd
8 changed files with 62 additions and 71 deletions
|
|
@ -26,10 +26,10 @@ struct wlr_swapchain {
|
|||
struct wl_listener allocator_destroy;
|
||||
};
|
||||
|
||||
struct wlr_swapchain *wlr_swapchain_create(
|
||||
bool wlr_swapchain_init(struct wlr_swapchain *swapchain,
|
||||
struct wlr_allocator *alloc, int width, int height,
|
||||
const struct wlr_drm_format *format);
|
||||
void wlr_swapchain_destroy(struct wlr_swapchain *swapchain);
|
||||
void wlr_swapchain_finish(struct wlr_swapchain *swapchain);
|
||||
/**
|
||||
* Acquire a buffer from the swap chain.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue