Skip to content

Commit 469494a

Browse files
Ram IndaniAndroid (Google) Code Review
authored andcommitted
Merge "[SF] Use render rate to classify BufferStuffing state" into main
2 parents fbf8178 + 0d03b07 commit 469494a

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
@@ -654,7 +654,7 @@ void SurfaceFrame::classifyJankLocked(int32_t displayFrameJankType, const Fps& r
654654
// We try to do this by moving the deadline. Since the queue could be stuffed by more
655655
// than one buffer, we take the last latch time as reference and give one vsync
656656
// worth of time for the frame to be ready.
657-
nsecs_t adjustedDeadline = mLastLatchTime + refreshRate.getPeriodNsecs();
657+
nsecs_t adjustedDeadline = mLastLatchTime + displayFrameRenderRate.getPeriodNsecs();
658658
if (adjustedDeadline > mActuals.endTime) {
659659
mFrameReadyMetadata = FrameReadyMetadata::OnTimeFinish;
660660
} else {

0 commit comments

Comments
 (0)