mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-11 09:25:26 +00:00
33 lines
730 B
C
33 lines
730 B
C
// Copyright 2020, Collabora, Ltd.
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
/*!
|
|
* @file
|
|
* @brief Header exposing factory function for AHardwareBuffer backed image
|
|
buffer allocator.
|
|
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
|
|
* @ingroup aux_android
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xrt/xrt_compositor.h"
|
|
#include "xrt/xrt_handles.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER
|
|
|
|
struct xrt_image_native_allocator *
|
|
android_ahardwarebuffer_allocator_create();
|
|
|
|
xrt_result_t
|
|
ahardwarebuffer_image_allocate(const struct xrt_swapchain_create_info *xsci, xrt_graphics_buffer_handle_t *out_image);
|
|
|
|
#endif // XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|