diff options
author | 2022-03-07 23:16:57 +0000 | |
---|---|---|
committer | 2022-03-07 23:16:57 +0000 | |
commit | b8027ece74fa6f701e1930612cc05f6782090897 (patch) | |
tree | ecdb2317c08a3c549a79bcbff832a512d3149db9 /libs/gui/ISurfaceComposer.cpp | |
parent | 2cf8b43c4d8fe724d6a7aa8af2e346e8864ddb46 (diff) | |
parent | 734be1c1cfcd2e314d5aceef127b0ee2054cf183 (diff) |
Merge "BLASTBufferQueue/SF: apply transactions with one-way binder" into tm-dev am: 734be1c1cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/16981659
Change-Id: I6bfe9e2e48b61265c18898217a7daf4929d43e1e
Diffstat (limited to 'libs/gui/ISurfaceComposer.cpp')
-rw-r--r-- | libs/gui/ISurfaceComposer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp index 3c02e21aff..24d39fe86a 100644 --- a/libs/gui/ISurfaceComposer.cpp +++ b/libs/gui/ISurfaceComposer.cpp @@ -111,7 +111,13 @@ public: SAFE_PARCEL(data.writeUint64, transactionId); - return remote()->transact(BnSurfaceComposer::SET_TRANSACTION_STATE, data, &reply); + if (flags & ISurfaceComposer::eOneWay) { + return remote()->transact(BnSurfaceComposer::SET_TRANSACTION_STATE, + data, &reply, IBinder::FLAG_ONEWAY); + } else { + return remote()->transact(BnSurfaceComposer::SET_TRANSACTION_STATE, + data, &reply); + } } void bootFinished() override { |