Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b2de2ff authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Don't run comparisons on non-jank frames" am: 903dad81 am: 4007dd10

am: 21013eeb

Change-Id: Idf00d170ac8f1ab7a9c378c281b02ab5aa767ee1
parents e1a45183 21013eeb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ void JankTracker::finishFrame(const FrameInfo& frame) {
                             frame[FrameInfoIndex::IntendedVsync] + mFrameInterval);

    // If we hit the deadline, cool!
    if (frame[FrameInfoIndex::FrameCompleted] < mSwapDeadline) {
    if (frame[FrameInfoIndex::FrameCompleted] < mSwapDeadline || totalDuration < mFrameInterval) {
        if (isTripleBuffered) {
            mData->reportJankType(JankType::kHighInputLatency);
            (*mGlobalData)->reportJankType(JankType::kHighInputLatency);