Merge "Don't run comparisons on non-jank frames"

This commit is contained in:
Treehugger Robot
2018-09-19 23:28:55 +00:00
committed by Gerrit Code Review

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