diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-03-06 00:05:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-06 00:05:30 +0000 |
commit | 9bfd564372aa41248f22fe775ff27b729c526512 (patch) | |
tree | 330680bb6517c69bff2897869f3a2dfc6beca0b3 | |
parent | 9fbaf5f7e75fc593e0325cdbe63676a67f67ef70 (diff) | |
parent | 35c4a19ad9a70a74cdd634195cc37a689958cbb4 (diff) | |
download | base-9bfd564372aa41248f22fe775ff27b729c526512.tar.gz |
Merge "Don't rely on default argument of NDK API." into main
-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); |