From 621102e5d2c97bd00404817191fa5012749a7a0f Mon Sep 17 00:00:00 2001 From: Vishnu Nair Date: Wed, 12 Jun 2019 14:16:57 -0700 Subject: 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 --- libs/gui/SurfaceControl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/gui/SurfaceControl.cpp') 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::readFromParcel(Parcel* parcel) -{ +sp SurfaceControl::readFromParcel(const Parcel* parcel) { sp client = parcel->readStrongBinder(); sp handle = parcel->readStrongBinder(); if (client == nullptr || handle == nullptr) -- cgit v1.2.3-59-g8ed1b