Loading libs/hwui/JankTracker.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -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, Loading libs/hwui/JankTracker.h +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ private: std::array<int64_t, NUM_BUCKETS> mThresholds; int64_t mFrameInterval; nsecs_t mSwapDeadline; nsecs_t mSwapDeadline = -1; // The amount of time we will erase from the total duration to account // for SF vsync offsets with HWC2 blocking dequeueBuffers. // (Vsync + mDequeueBlockTolerance) is the point at which we expect Loading Loading
libs/hwui/JankTracker.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -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, Loading
libs/hwui/JankTracker.h +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ private: std::array<int64_t, NUM_BUCKETS> mThresholds; int64_t mFrameInterval; nsecs_t mSwapDeadline; nsecs_t mSwapDeadline = -1; // The amount of time we will erase from the total duration to account // for SF vsync offsets with HWC2 blocking dequeueBuffers. // (Vsync + mDequeueBlockTolerance) is the point at which we expect Loading