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

Commit e35e9abf authored by Ady Abraham's avatar Ady Abraham Committed by Android (Google) Code Review
Browse files

Merge "SF: reset the idle timer if a frame is scheduled"

parents 24b785d3 27bcb550
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3843,6 +3843,10 @@ void SurfaceFlinger::setTransactionFlags(uint32_t mask, TransactionSchedule sche

    if (const bool scheduled = mTransactionFlags.fetch_or(mask) & mask; !scheduled) {
        scheduleCommit(frameHint);
    } else if (frameHint == FrameHint::kActive) {
        // Even if the next frame is already scheduled, we should reset the idle timer
        // as a new activity just happened.
        mScheduler->resetIdleTimer();
    }
}