Monado OpenXR Runtime
|
A mock native compositor to use when testing client compositors. More...
Go to the source code of this file.
Data Structures | |
struct | mock_compositor |
Mock implementation of a native compositor. More... | |
struct | mock_compositor_swapchain |
Mock implementation of xrt_swapchain_native. More... | |
Functions | |
static struct mock_compositor * | mock_compositor (xrt_compositor *xc) |
Cast a generic xrt_compositor pointer (that you know externally is a mock_compositor) to a mock_compositor pointer. More... | |
static struct mock_compositor_swapchain * | mock_compositor_swapchain (xrt_swapchain *xsc) |
Cast a generic xrt_swapchain pointer (that you know externally is a mock_compositor_swapchain) to a mock_compositor_swapchain pointer. More... | |
struct xrt_compositor_native * | mock_create_native_compositor () |
Create a mock implementation of xrt_compositor_native. More... | |
A mock native compositor to use when testing client compositors.
|
inlinestatic |
Cast a generic xrt_compositor pointer (that you know externally is a mock_compositor) to a mock_compositor
pointer.
|
inlinestatic |
Cast a generic xrt_swapchain pointer (that you know externally is a mock_compositor_swapchain) to a mock_compositor_swapchain
pointer.
struct xrt_compositor_native * mock_create_native_compositor | ( | ) |
Create a mock implementation of xrt_compositor_native.
The returned value can be passed to mock_compositor() to use the internals of the mock, e.g. to populate hooks to override mock behavior.
References xrt_compositor_native::base, xrt_compositor::get_swapchain_create_properties, and U_TYPED_CALLOC.