Monado OpenXR Runtime
android_ahardwarebuffer_allocator.h
Go to the documentation of this file.
1// Copyright 2020, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Header exposing factory function for AHardwareBuffer backed image
6 buffer allocator.
7 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
8 * @ingroup aux_android
9 */
10
11#pragma once
12
13#include "xrt/xrt_compositor.h"
14#include "xrt/xrt_handles.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER
21
23android_ahardwarebuffer_allocator_create(void);
24
26ahardwarebuffer_image_allocate(const struct xrt_swapchain_create_info *xsci, xrt_graphics_buffer_handle_t *out_image);
27
28#endif // XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER
29
30#ifdef __cplusplus
31}
32#endif
enum xrt_result xrt_result_t
Result type used across Monado.
Allocator for system native images, in general you do not need to free the images as they will be con...
Definition: xrt_compositor.h:2626
Swapchain creation info.
Definition: xrt_compositor.h:876
Header declaring XRT graphics interfaces.
Native handle types.
int xrt_graphics_buffer_handle_t
The type underlying buffers shared between compositor clients and the main compositor.
Definition: xrt_handles.h:246