mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 06:00:35 +01:00
When the compiler is configured to complain about missing prototypes, the lack of prototypes can cause issues: src/android_stub/cutils_stub.cpp:13:1: error: no previous prototype for function 'atrace_begin_body' [-Werror,-Wmissing-prototypes] 13 | atrace_begin_body(const char * /*name*/) Update cutils/trace.h to the version in android-16.0.0_r3 [1], and add proper header includes to fix this. [1] https://android.googlesource.com/platform/system/core.git/+/refs/tags/android-16.0.0_r3/libcutils/include/cutils/trace.h Acked-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38644>
111 lines
1.9 KiB
C++
111 lines
1.9 KiB
C++
#include <vndk/window.h>
|
|
#include <vndk/hardware_buffer.h>
|
|
|
|
extern "C" {
|
|
|
|
AHardwareBuffer *
|
|
ANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer *anwb)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
void
|
|
AHardwareBuffer_acquire(AHardwareBuffer *buffer)
|
|
{
|
|
}
|
|
|
|
void
|
|
AHardwareBuffer_release(AHardwareBuffer *buffer)
|
|
{
|
|
}
|
|
|
|
void
|
|
AHardwareBuffer_describe(const AHardwareBuffer *buffer,
|
|
AHardwareBuffer_Desc *outDesc)
|
|
{
|
|
}
|
|
|
|
int
|
|
AHardwareBuffer_allocate(const AHardwareBuffer_Desc *desc,
|
|
AHardwareBuffer **outBuffer)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
AHardwareBuffer_isSupported(const AHardwareBuffer_Desc* desc)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
const native_handle_t *
|
|
AHardwareBuffer_getNativeHandle(const AHardwareBuffer *buffer)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void
|
|
ANativeWindow_acquire(ANativeWindow *window)
|
|
{
|
|
}
|
|
|
|
void
|
|
ANativeWindow_release(ANativeWindow *window)
|
|
{
|
|
}
|
|
|
|
int32_t
|
|
ANativeWindow_getFormat(ANativeWindow *window)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_setSwapInterval(ANativeWindow *window, int interval)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_query(const ANativeWindow *window,
|
|
ANativeWindowQuery query,
|
|
int *value)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_dequeueBuffer(ANativeWindow *window,
|
|
ANativeWindowBuffer **buffer,
|
|
int *fenceFd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_queueBuffer(ANativeWindow *window,
|
|
ANativeWindowBuffer *buffer,
|
|
int fenceFd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int ANativeWindow_cancelBuffer(ANativeWindow* window,
|
|
ANativeWindowBuffer* buffer,
|
|
int fenceFd) {
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_setUsage(ANativeWindow *window, uint64_t usage)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
ANativeWindow_setSharedBufferMode(ANativeWindow *window,
|
|
bool sharedBufferMode)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|