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

Commit 4007dd10 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

Change-Id: I7cbca9acb9f14149868f18af8970d5324d51e260
parents d050a2ed 903dad81
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);