Skip to content

Commit 0d03b07

Browse files
author
ramindani
committed
[SF] Use render rate to classify BufferStuffing state
Test: make BUG: 390776340 Flag: EXEMPT bug fix Change-Id: I6b282d205cccb3861ea77d57a0dc0d911b7504e0
1 parent ad5ae5b commit 0d03b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/surfaceflinger/FrameTimeline/FrameTimeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ void SurfaceFrame::classifyJankLocked(int32_t displayFrameJankType, const Fps& r
651651
// We try to do this by moving the deadline. Since the queue could be stuffed by more
652652
// than one buffer, we take the last latch time as reference and give one vsync
653653
// worth of time for the frame to be ready.
654-
nsecs_t adjustedDeadline = mLastLatchTime + refreshRate.getPeriodNsecs();
654+
nsecs_t adjustedDeadline = mLastLatchTime + displayFrameRenderRate.getPeriodNsecs();
655655
if (adjustedDeadline > mActuals.endTime) {
656656
mFrameReadyMetadata = FrameReadyMetadata::OnTimeFinish;
657657
} else {

0 commit comments

Comments
 (0)