c/util: Refactor comp_swapchain interface a bit

This commit is contained in:
Jakob Bornecrantz 2022-08-11 19:22:15 +01:00 committed by Jakob Bornecrantz
parent ff4ce5f7e2
commit d578203a8e
2 changed files with 16 additions and 12 deletions

View file

@ -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;

View file

@ -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
}