Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8dd962b authored by Alec Mouri's avatar Alec Mouri
Browse files

Remove unused code in Layer::releasePendingBuffer

This loop was originally added to find the most recently presented fence
to pass over to FrameEventHistory. But FrameEventHistory no longer
exists, so this loop just finds a fence to do nothing with it.

Bug: 247513510
Test: builds
Change-Id: Ifb887c3e7542395da39c5634b68f3782d10bd704
parent eebf7c3b
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -3017,17 +3017,6 @@ void Layer::releasePendingBuffer(nsecs_t dequeueReadyTime) {

    mFlinger->getTransactionCallbackInvoker().addCallbackHandles(mDrawingState.callbackHandles,
                                                                 jankData);

    sp<Fence> releaseFence = Fence::NO_FENCE;
    for (auto& handle : mDrawingState.callbackHandles) {
        if (handle->releasePreviousBuffer &&
            mDrawingState.releaseBufferEndpoint == handle->listener) {
            releaseFence =
                    handle->previousReleaseFence ? handle->previousReleaseFence : Fence::NO_FENCE;
            break;
        }
    }

    mDrawingState.callbackHandles = {};
}