diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-10-19 23:20:09 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-19 23:20:09 +0000 |
commit | b0c41a1b0c8b219172e88f8b588f8d910ede3f57 (patch) | |
tree | 695272c200019f88d7ebc18d61872d0043fb5bc1 /libs/hwui/JankTracker.cpp | |
parent | 3bef7fe58bd4c2d4275ccff93b93c8206bd7ddd4 (diff) | |
parent | 6922a97ee2173a257cc6c3006e51eb437f9686de (diff) |
Merge "Merge redfin/bramble support."
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
-rw-r--r-- | libs/hwui/JankTracker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index d25fc4b0b03e..b2c39c90071a 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -139,6 +139,9 @@ void JankTracker::finishFrame(const FrameInfo& frame) { (*mGlobalData)->reportJank(); } + if (mSwapDeadline < 0) { + mSwapDeadline = frame[FrameInfoIndex::IntendedVsync] + mFrameInterval; + } bool isTripleBuffered = (mSwapDeadline - frame[FrameInfoIndex::IntendedVsync]) > (mFrameInterval * 0.1); mSwapDeadline = std::max(mSwapDeadline + mFrameInterval, |