mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
c/util: Refactor comp_swapchain interface a bit
This commit is contained in:
parent
ff4ce5f7e2
commit
d578203a8e
|
@ -362,7 +362,14 @@ comp_swapchain_import(struct vk_bundle *vk,
|
|||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
/*!
|
||||
* Swapchain destruct is delayed until it is safe to destroy them, this function
|
||||
* does the actual destruction and is called from @ref
|
||||
* comp_swapchain_garbage_collect.
|
||||
*
|
||||
* @ingroup comp_util
|
||||
*/
|
||||
static void
|
||||
comp_swapchain_really_destroy(struct comp_swapchain *sc)
|
||||
{
|
||||
struct vk_bundle *vk = sc->vk;
|
||||
|
|
|
@ -105,7 +105,7 @@ comp_swapchain(struct xrt_swapchain *xsc)
|
|||
|
||||
/*
|
||||
*
|
||||
* 'Exported' functions.
|
||||
* 'Exported' garbage collection functions.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -118,6 +118,13 @@ comp_swapchain(struct xrt_swapchain *xsc)
|
|||
void
|
||||
comp_swapchain_garbage_collect(struct comp_swapchain_gc *cscgc);
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* 'Exported' default implementation.
|
||||
*
|
||||
*/
|
||||
|
||||
/*!
|
||||
* A compositor function that is implemented in the swapchain code.
|
||||
*
|
||||
|
@ -152,16 +159,6 @@ comp_swapchain_import(struct vk_bundle *vk,
|
|||
uint32_t image_count,
|
||||
struct xrt_swapchain **out_xsc);
|
||||
|
||||
/*!
|
||||
* Swapchain destruct is delayed until it is safe to destroy them, this function
|
||||
* does the actual destruction and is called from @ref
|
||||
* comp_swapchain_garbage_collect.
|
||||
*
|
||||
* @ingroup comp_util
|
||||
*/
|
||||
void
|
||||
comp_swapchain_really_destroy(struct comp_swapchain *sc);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue