Lines Matching refs:vsyncDuration
124 PhaseOffsets::Offsets PhaseOffsets::getDefaultOffsets(nsecs_t vsyncDuration) const { in getDefaultOffsets()
129 : mEarlySfOffsetNs.value_or(mSfVSyncPhaseOffsetNs) - vsyncDuration, in getDefaultOffsets()
136 : mEarlyGlSfOffsetNs.value_or(mSfVSyncPhaseOffsetNs) - vsyncDuration, in getDefaultOffsets()
143 : mSfVSyncPhaseOffsetNs - vsyncDuration, in getDefaultOffsets()
150 PhaseOffsets::Offsets PhaseOffsets::getHighFpsOffsets(nsecs_t vsyncDuration) const { in getHighFpsOffsets()
167 vsyncDuration, in getHighFpsOffsets()
176 vsyncDuration, in getHighFpsOffsets()
183 : highFpsLateSfOffsetNs - vsyncDuration, in getHighFpsOffsets()
239 static nsecs_t sfDurationToOffset(nsecs_t sfDuration, nsecs_t vsyncDuration) { in sfDurationToOffset() argument
240 return sfDuration == -1 ? 1'000'000 : vsyncDuration - sfDuration % vsyncDuration; in sfDurationToOffset()
243 static nsecs_t appDurationToOffset(nsecs_t appDuration, nsecs_t sfDuration, nsecs_t vsyncDuration) { in appDurationToOffset() argument
245 : vsyncDuration - (appDuration + sfDuration) % vsyncDuration; in appDurationToOffset()
248 PhaseDurations::Offsets PhaseDurations::constructOffsets(nsecs_t vsyncDuration) const { in constructOffsets()
251 mSfEarlyDuration < vsyncDuration in constructOffsets()
252 ? sfDurationToOffset(mSfEarlyDuration, vsyncDuration) in constructOffsets()
253 : sfDurationToOffset(mSfEarlyDuration, vsyncDuration) - vsyncDuration, in constructOffsets()
255 appDurationToOffset(mAppEarlyDuration, mSfEarlyDuration, vsyncDuration), in constructOffsets()
258 mSfEarlyGlDuration < vsyncDuration in constructOffsets()
259 ? sfDurationToOffset(mSfEarlyGlDuration, vsyncDuration) in constructOffsets()
260 : sfDurationToOffset(mSfEarlyGlDuration, vsyncDuration) - vsyncDuration, in constructOffsets()
262 appDurationToOffset(mAppEarlyGlDuration, mSfEarlyGlDuration, vsyncDuration), in constructOffsets()
265 mSfDuration < vsyncDuration in constructOffsets()
266 ? sfDurationToOffset(mSfDuration, vsyncDuration) in constructOffsets()
267 : sfDurationToOffset(mSfDuration, vsyncDuration) - vsyncDuration, in constructOffsets()
269 appDurationToOffset(mAppDuration, mSfDuration, vsyncDuration), in constructOffsets()