diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2021-03-24 09:19:41 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-03-25 06:06:16 +0000 |
commit | 5c7dd85e4f0754e2e396197dae377b362573d12d (patch) | |
tree | 30a132955b4d39ec8062b348c95173f10dfc6a11 | |
parent | e10a094e0ab96699b9be81d2f5afea5eaa71338b (diff) |
android: add some more stub functions for cross compilation
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9796>
-rw-r--r-- | src/android_stub/nativewindow_stub.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/android_stub/nativewindow_stub.cpp b/src/android_stub/nativewindow_stub.cpp index dc0ea675560..c83046a6b4a 100644 --- a/src/android_stub/nativewindow_stub.cpp +++ b/src/android_stub/nativewindow_stub.cpp @@ -12,4 +12,17 @@ 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; +} + +const native_handle_t* AHardwareBuffer_getNativeHandle(const AHardwareBuffer* buffer) { + return NULL; +} + } |