diff options
| author | 2022-04-05 22:30:26 +0000 | |
|---|---|---|
| committer | 2022-04-05 22:30:26 +0000 | |
| commit | aa1fffe4de6866d92c8f49041422fd7aabc0415c (patch) | |
| tree | 5facde7487ce73ef67790aa070050257cd4abeeb /libs/gui/SurfaceComposerClient.cpp | |
| parent | 837d8b541ae04019b0109d02c19a5a9bb63c29ff (diff) | |
| parent | ade0d07ba1ae18d9aee25b22ff6ef49599217f67 (diff) | |
DO NOT MERGE: SurfaceFlinger: Add Transaction#sanitize am: ade0d07ba1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/16811470
Change-Id: Icae8571767c15de7573cdccbc1fb0df674795792
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 725ea6571d..4bcc9d56c8 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -551,6 +551,13 @@ SurfaceComposerClient::Transaction::Transaction(const Transaction& other) mListenerCallbacks = other.mListenerCallbacks; } +void SurfaceComposerClient::Transaction::sanitize() { + for (auto & [handle, composerState] : mComposerStates) { + composerState.state.sanitize(0 /* permissionMask */); + } + mInputWindowCommands.clear(); +} + std::unique_ptr<SurfaceComposerClient::Transaction> SurfaceComposerClient::Transaction::createFromParcel(const Parcel* parcel) { auto transaction = std::make_unique<Transaction>(); @@ -635,7 +642,6 @@ status_t SurfaceComposerClient::Transaction::readFromParcel(const Parcel* parcel if (composerState.read(*parcel) == BAD_VALUE) { return BAD_VALUE; } - composerStates[surfaceControlHandle] = composerState; } |