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

Commit d6271e0e authored by Rachel Lee's avatar Rachel Lee Committed by Android (Google) Code Review
Browse files

Revert "Resync on the transaction."

This reverts commit a5be328a.

Reason for revert: b/272956327

Change-Id: I0484a0396144cbcaa76e9b3a38d157f744d9a303
parent a5be328a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -402,7 +402,6 @@ void Scheduler::disableHardwareVsync(PhysicalDisplayId id, bool disallow) {
}

void Scheduler::resyncAllToHardwareVsync(bool allowToEnable) {
    ATRACE_CALL();
    std::scoped_lock lock(mDisplayLock);
    ftl::FakeGuard guard(kMainThreadContext);

+0 −1
Original line number Diff line number Diff line
@@ -4119,7 +4119,6 @@ void SurfaceFlinger::setTransactionFlags(uint32_t mask, TransactionSchedule sche
    ATRACE_INT("mTransactionFlags", transactionFlags);

    if (const bool scheduled = transactionFlags & mask; !scheduled) {
        mScheduler->resync();
        scheduleCommit(frameHint);
    } else if (frameHint == FrameHint::kActive) {
        // Even if the next frame is already scheduled, we should reset the idle timer