Lines Matching refs:minFramePeriod
31 TimePoint FrameTarget::pastVsyncTime(Period minFramePeriod) const { in pastVsyncTime()
33 const int shift = static_cast<int>(targetsVsyncsAhead<2>(minFramePeriod)); in pastVsyncTime()
34 return mExpectedPresentTime - Period::fromNs(minFramePeriod.ns() << shift); in pastVsyncTime()
37 FenceTimePtr FrameTarget::presentFenceForPastVsync(Period minFramePeriod) const { in presentFenceForPastVsync()
41 const size_t i = static_cast<size_t>(targetsVsyncsAhead<2>(minFramePeriod)); in presentFenceForPastVsync()
45 bool FrameTarget::wouldPresentEarly(Period minFramePeriod) const { in wouldPresentEarly()
51 if (!allowNVsyncs && targetsVsyncsAhead<3>(minFramePeriod)) { in wouldPresentEarly()
55 const auto fence = presentFenceForPastVsync(minFramePeriod); in wouldPresentEarly()
75 const Period minFramePeriod = vsyncSource.minFramePeriod(); in beginFrame() local
90 mEarliestPresentTime = computeEarliestPresentTime(minFramePeriod, args.hwcMinWorkDuration); in beginFrame()
97 const FenceTimePtr& pastPresentFence = presentFenceForPastVsync(minFramePeriod); in beginFrame()
133 std::optional<TimePoint> FrameTargeter::computeEarliestPresentTime(Period minFramePeriod, in computeEarliestPresentTime() argument
135 if (wouldPresentEarly(minFramePeriod)) { in computeEarliestPresentTime()
136 return previousFrameVsyncTime(minFramePeriod) - hwcMinWorkDuration; in computeEarliestPresentTime()