diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-03-06 00:48:13 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2024-03-06 00:48:13 +0000 |
commit | 19235693d84a402fe51a71c758ed758eaa5151b6 (patch) | |
tree | e6078ece0c1cd15501a769d03069b870c55112ec /tests | |
parent | fc99cd5a66cd314a73da8dfb3e1464788389039a (diff) | |
parent | 9bfd564372aa41248f22fe775ff27b729c526512 (diff) | |
download | base-19235693d84a402fe51a71c758ed758eaa5151b6.tar.gz |
Merge "Don't rely on default argument of NDK API." into main am: 9bfd564372
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2974124
Change-Id: Iec35a199c89c6ac104ec76f49221db10300f4dff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/graphics/HwAccelerationTest/jni/native-lib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/graphics/HwAccelerationTest/jni/native-lib.cpp b/tests/graphics/HwAccelerationTest/jni/native-lib.cpp index 407d4bf76336..2977c2157261 100644 --- a/tests/graphics/HwAccelerationTest/jni/native-lib.cpp +++ b/tests/graphics/HwAccelerationTest/jni/native-lib.cpp @@ -30,7 +30,7 @@ struct MyWrapper { void setBuffer(AHardwareBuffer* buffer) { ASurfaceTransaction* transaction = ASurfaceTransaction_create(); - ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer); + ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer, -1); ASurfaceTransaction_setVisibility(transaction, surfaceControl, ASURFACE_TRANSACTION_VISIBILITY_SHOW); ASurfaceTransaction_apply(transaction); |