Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 35c4a19

Browse files
committed
Don't rely on default argument of NDK API.
The NDK APIs are supposed to be C-compatible. This one accidentally included a default argument, which is a C++ feature. That's being fixed, so this needs to pass the argument explicitly. Bug: android/ndk#1920 Test: treehugger Change-Id: Ia79da4b4593dfd46302cb44298e906bb8e6c4d86
1 parent ea0c498 commit 35c4a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/graphics/HwAccelerationTest/jni/native-lib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct MyWrapper {
3030

3131
void setBuffer(AHardwareBuffer* buffer) {
3232
ASurfaceTransaction* transaction = ASurfaceTransaction_create();
33-
ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer);
33+
ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer, -1);
3434
ASurfaceTransaction_setVisibility(transaction, surfaceControl,
3535
ASURFACE_TRANSACTION_VISIBILITY_SHOW);
3636
ASurfaceTransaction_apply(transaction);

0 commit comments

Comments
 (0)