comp: Remove no-longer-needed comp_layer_quad struct.

Replaced by xrt_comp_layer_quad.
Also add some comments.
This commit is contained in:
Ryan Pavlik 2020-06-09 16:19:39 -05:00
parent 7446dc08d5
commit 26ab046fba

View file

@ -78,24 +78,6 @@ struct comp_swapchain
struct u_index_fifo fifo;
};
/*!
* A quad layer.
*
* @ingroup comp_main
* @see comp_layer
*/
struct comp_layer_quad
{
enum xrt_layer_eye_visibility visibility;
uint32_t image_index;
uint32_t array_index;
struct xrt_rect rect;
struct xrt_pose pose;
struct xrt_vec2 size;
};
/*!
* A single layer.
*
@ -104,8 +86,16 @@ struct comp_layer_quad
*/
struct comp_layer
{
/*!
* Up to two compositor swapchains referenced per layer.
*
* Unused elements should be set to null.
*/
struct comp_swapchain *scs[2];
/*!
* All basic (trivially-serializable) data associated with a layer.
*/
struct xrt_layer_data data;
};