diff options
| author | 2025-03-06 12:22:39 -0800 | |
|---|---|---|
| committer | 2025-03-06 12:22:39 -0800 | |
| commit | 797caaffdfb52b5bda5daddc58d2d1849153603b (patch) | |
| tree | 355f7429b5f91fe0a9e9372dea17c03f1463b1cd | |
| parent | e713cc137833c5fc736a2fef43e43f537ac3dcbb (diff) | |
| parent | 38e8c45f13ce32b0dcecb25141ffecaf386fa17f (diff) | |
Merge 25Q1 (ab/BP1A.250305.020) to aosp-main-future
Bug: 385190204
Merged-In: I33574b3ff347264a19e2e0bcfd2236639aad01a5
Change-Id: I831130d2f8ed1ad917f24dea48cf6e2d55b91b7c
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 05db927402..8c6ae0e7aa 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -3171,12 +3171,12 @@ void SurfaceFlinger::onCompositionPresented(PhysicalDisplayId pacesetterId, const auto schedule = mScheduler->getVsyncSchedule(); const TimePoint vsyncDeadline = schedule->vsyncDeadlineAfter(presentTime); - const Period vsyncPeriod = schedule->period(); + const Fps renderRate = pacesetterDisplay->refreshRateSelector().getActiveMode().fps; const nsecs_t vsyncPhase = mScheduler->getVsyncConfiguration().getCurrentConfigs().late.sfOffset; - const CompositorTiming compositorTiming(vsyncDeadline.ns(), vsyncPeriod.ns(), vsyncPhase, - presentLatency.ns()); + const CompositorTiming compositorTiming(vsyncDeadline.ns(), renderRate.getPeriodNsecs(), + vsyncPhase, presentLatency.ns()); ui::DisplayMap<ui::LayerStack, const DisplayDevice*> layerStackToDisplay; { |