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
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 0c297d9..bc0b3a4 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -4236,6 +4236,8 @@
if (data.hintStatus.compare_exchange_strong(scheduleHintOnTx,
NotifyExpectedPresentHintStatus::Sent)) {
sendHint();
+ constexpr bool kAllowToEnable = true;
+ mScheduler->resyncToHardwareVsync(displayId, kAllowToEnable);
}
}));
}