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

Commit 2ff3cd44 authored by ramindani's avatar ramindani
Browse files

SF: resyncToHardwareVsync after sending a notifyExpectedPresent hint.

Only send the hint with ScheduleOnTx to target the timeout use case.

BUG: 357801609
Test: With a trace that we enable the HWVSync on notifyExpectedPresent
after timeout.
Flag: EXEMPT bugfix

Change-Id: I1bb6a585e6f40adf2fc9b1d644953460e8f23585
parent 0d9430de
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -4236,6 +4236,8 @@ void SurfaceFlinger::scheduleNotifyExpectedPresentHint(PhysicalDisplayId display
            if (data.hintStatus.compare_exchange_strong(scheduleHintOnTx,
            if (data.hintStatus.compare_exchange_strong(scheduleHintOnTx,
                                                        NotifyExpectedPresentHintStatus::Sent)) {
                                                        NotifyExpectedPresentHintStatus::Sent)) {
                sendHint();
                sendHint();
                constexpr bool kAllowToEnable = true;
                mScheduler->resyncToHardwareVsync(displayId, kAllowToEnable);
            }
            }
        }));
        }));
    }
    }