diff options
author | 2025-01-29 13:51:59 -0800 | |
---|---|---|
committer | 2025-01-29 14:01:14 -0800 | |
commit | 0d03b07dce9bd418822b6520f66b6ec4bdd2b0f0 (patch) | |
tree | 867ad107dc69f08fb5402feed695780936bc2684 | |
parent | ad5ae5bcee55a59fad5ef3e7d29d26b9edbf1267 (diff) |
[SF] Use render rate to classify BufferStuffing state
Test: make
BUG: 390776340
Flag: EXEMPT bug fix
Change-Id: I6b282d205cccb3861ea77d57a0dc0d911b7504e0
-rw-r--r-- | services/surfaceflinger/FrameTimeline/FrameTimeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/FrameTimeline/FrameTimeline.cpp b/services/surfaceflinger/FrameTimeline/FrameTimeline.cpp index 86d7388f5b..daf2732ebe 100644 --- a/services/surfaceflinger/FrameTimeline/FrameTimeline.cpp +++ b/services/surfaceflinger/FrameTimeline/FrameTimeline.cpp @@ -651,7 +651,7 @@ void SurfaceFrame::classifyJankLocked(int32_t displayFrameJankType, const Fps& r // We try to do this by moving the deadline. Since the queue could be stuffed by more // than one buffer, we take the last latch time as reference and give one vsync // worth of time for the frame to be ready. - nsecs_t adjustedDeadline = mLastLatchTime + refreshRate.getPeriodNsecs(); + nsecs_t adjustedDeadline = mLastLatchTime + displayFrameRenderRate.getPeriodNsecs(); if (adjustedDeadline > mActuals.endTime) { mFrameReadyMetadata = FrameReadyMetadata::OnTimeFinish; } else { |