Mesa (master): android: add some more stub functions for cross compilation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 25 06:15:50 UTC 2021


Module: Mesa
Branch: master
Commit: 5c7dd85e4f0754e2e396197dae377b362573d12d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c7dd85e4f0754e2e396197dae377b362573d12d

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Wed Mar 24 09:19:41 2021 +0200

android: add some more stub functions for cross compilation

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9796>

---

 src/android_stub/nativewindow_stub.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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;
+}
+
 }



More information about the mesa-commit mailing list