Merge "Don't run comparisons on non-jank frames" am: 903dad812e

am: 4007dd103f

Change-Id: I175e245bd2ced35505a2295f4037c6d9c932f056
This commit is contained in:
John Reck
2018-09-19 18:34:59 -07:00
committed by android-build-merger

View File

@@ -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);