Loading services/surfaceflinger/RegionSamplingThread.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -201,9 +201,10 @@ RegionSamplingThread::~RegionSamplingThread() { void RegionSamplingThread::addListener(const Rect& samplingArea, const sp<IBinder>& stopLayerHandle, void RegionSamplingThread::addListener(const Rect& samplingArea, const sp<IBinder>& stopLayerHandle, const sp<IRegionSamplingListener>& listener) { const sp<IRegionSamplingListener>& listener) { wp<Layer> stopLayer = stopLayerHandle != nullptr wp<Layer> stopLayer; ? static_cast<Layer::Handle*>(stopLayerHandle.get())->owner if (stopLayerHandle != nullptr && stopLayerHandle->localBinder() != nullptr) { : nullptr; stopLayer = static_cast<Layer::Handle*>(stopLayerHandle.get())->owner; } sp<IBinder> asBinder = IInterface::asBinder(listener); sp<IBinder> asBinder = IInterface::asBinder(listener); asBinder->linkToDeath(this); asBinder->linkToDeath(this); Loading Loading
services/surfaceflinger/RegionSamplingThread.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -201,9 +201,10 @@ RegionSamplingThread::~RegionSamplingThread() { void RegionSamplingThread::addListener(const Rect& samplingArea, const sp<IBinder>& stopLayerHandle, void RegionSamplingThread::addListener(const Rect& samplingArea, const sp<IBinder>& stopLayerHandle, const sp<IRegionSamplingListener>& listener) { const sp<IRegionSamplingListener>& listener) { wp<Layer> stopLayer = stopLayerHandle != nullptr wp<Layer> stopLayer; ? static_cast<Layer::Handle*>(stopLayerHandle.get())->owner if (stopLayerHandle != nullptr && stopLayerHandle->localBinder() != nullptr) { : nullptr; stopLayer = static_cast<Layer::Handle*>(stopLayerHandle.get())->owner; } sp<IBinder> asBinder = IInterface::asBinder(listener); sp<IBinder> asBinder = IInterface::asBinder(listener); asBinder->linkToDeath(this); asBinder->linkToDeath(this); Loading