diff options
author | 2020-09-22 18:11:45 +0000 | |
---|---|---|
committer | 2020-09-25 12:33:30 +0000 | |
commit | 421dfd5842d44a77883fac7ad2781c363e77aed3 (patch) | |
tree | 6d9773522d0e5cc0777c27804802b434214ee14c /libs/gui/SurfaceComposerClient.cpp | |
parent | 2ec1f7b970563ffd1651c36c52e9fc6831120915 (diff) |
Convert SurfaceControl parceling to SAFE_PARCEL
Test: Existing tests
Change-Id: I7618f9677e538fca90ae5cfb0693e5926701f564
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 3fda059497..0264e17b97 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -431,7 +431,7 @@ status_t SurfaceComposerClient::Transaction::readFromParcel(const Parcel* parcel } for (size_t j = 0; j < numSurfaces; j++) { sp<SurfaceControl> surface; - surface = SurfaceControl::readFromParcel(parcel); + SAFE_PARCEL(SurfaceControl::readFromParcel, *parcel, &surface); listenerCallbacks[listener].surfaceControls.insert(surface); } } @@ -507,7 +507,7 @@ status_t SurfaceComposerClient::Transaction::writeToParcel(Parcel* parcel) const } parcel->writeUint32(static_cast<uint32_t>(callbackInfo.surfaceControls.size())); for (auto surfaceControl : callbackInfo.surfaceControls) { - surfaceControl->writeToParcel(parcel); + SAFE_PARCEL(surfaceControl->writeToParcel, *parcel); } } |