summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2019-06-12 14:16:57 -0700
committer Vishnu Nair <vishnun@google.com> 2019-06-12 14:16:57 -0700
commit621102e5d2c97bd00404817191fa5012749a7a0f (patch)
tree612c8f79ab29225eb5e029b907ef825141f2022e /libs/gui/SurfaceControl.cpp
parentf92661b58260a3a5901f733f43f8ac37e9ffc338 (diff)
Make SurfaceControl Transaction parcelable 2/2
Allow clients to send SurfaceControl Transactions across processes to enable more advanced synchronization use cases. Bug: 132205507 Test: atest SurfaceFlinger_test Change-Id: I20a33cafc0960e73f9a2c3d740f81319e02b68ff
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r--libs/gui/SurfaceControl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp
index 55488dad0b..d87a447a97 100644
--- a/libs/gui/SurfaceControl.cpp
+++ b/libs/gui/SurfaceControl.cpp
@@ -186,8 +186,7 @@ void SurfaceControl::writeToParcel(Parcel* parcel)
parcel->writeStrongBinder(IGraphicBufferProducer::asBinder(mGraphicBufferProducer));
}
-sp<SurfaceControl> SurfaceControl::readFromParcel(Parcel* parcel)
-{
+sp<SurfaceControl> SurfaceControl::readFromParcel(const Parcel* parcel) {
sp<IBinder> client = parcel->readStrongBinder();
sp<IBinder> handle = parcel->readStrongBinder();
if (client == nullptr || handle == nullptr)