summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-03-06 00:05:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-06 00:05:30 +0000
commit9bfd564372aa41248f22fe775ff27b729c526512 (patch)
tree330680bb6517c69bff2897869f3a2dfc6beca0b3
parent9fbaf5f7e75fc593e0325cdbe63676a67f67ef70 (diff)
parent35c4a19ad9a70a74cdd634195cc37a689958cbb4 (diff)
downloadbase-9bfd564372aa41248f22fe775ff27b729c526512.tar.gz
Merge "Don't rely on default argument of NDK API." into main
-rw-r--r--tests/graphics/HwAccelerationTest/jni/native-lib.cpp2
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);