Lines Matching refs:frame
109 void JankTracker::finishFrame(const FrameInfo& frame) { in finishFrame() argument
111 int64_t totalDuration = frame.duration(sFrameStart, FrameInfoIndex::FrameCompleted); in finishFrame()
112 if (mDequeueTimeForgiveness && frame[FrameInfoIndex::DequeueBufferDuration] > 500_us) { in finishFrame()
113 nsecs_t expectedDequeueDuration = mDequeueTimeForgiveness + frame[FrameInfoIndex::Vsync] - in finishFrame()
114 frame[FrameInfoIndex::IssueDrawCommandsStart]; in finishFrame()
119 std::min(expectedDequeueDuration, frame[FrameInfoIndex::DequeueBufferDuration]); in finishFrame()
133 if (CC_UNLIKELY(frame[FrameInfoIndex::Flags] & EXEMPT_FRAMES_FLAGS)) { in finishFrame()
142 …bool isTripleBuffered = (mSwapDeadline - frame[FrameInfoIndex::IntendedVsync]) > (mFrameInterval *… in finishFrame()
145 frame[FrameInfoIndex::IntendedVsync] + mFrameInterval); in finishFrame()
148 if (frame[FrameInfoIndex::FrameCompleted] < mSwapDeadline || totalDuration < mFrameInterval) { in finishFrame()
160 nsecs_t jitterNanos = frame[FrameInfoIndex::FrameCompleted] - frame[FrameInfoIndex::Vsync]; in finishFrame()
162 mSwapDeadline = frame[FrameInfoIndex::FrameCompleted] - lastFrameOffset + mFrameInterval; in finishFrame()
165 int64_t delta = frame.duration(comparison.start, comparison.end); in finishFrame()
178 ss << FrameInfoNames[i] << "=" << frame[i] << ", "; in finishFrame()
215 FrameInfo& frame = mFrames[i]; in dumpFrames() local
216 if (frame[FrameInfoIndex::SyncStart] == 0) { in dumpFrames()
221 dprintf(fd, "%" PRId64 ",", frame[i]); in dumpFrames()
235 void JankTracker::finishGpuDraw(const FrameInfo& frame) { in finishGpuDraw() argument
236 int64_t totalGPUDrawTime = frame.gpuDrawTime(); in finishGpuDraw()