render/swapchain: switch to init()/finish()

This commit is contained in:
Simon Ser 2023-02-20 19:14:48 +01:00
parent ef49909da8
commit 53757b18bd
8 changed files with 62 additions and 71 deletions

View file

@ -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.
*