Home
last modified time | relevance | path

Searched refs:expectNextVsyncTime (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/
H A Dvsync_generator.cpp607 VsyncError VSyncGenerator::SetExpectNextVsyncTimeInternal(int64_t expectNextVsyncTime) in SetExpectNextVsyncTimeInternal() argument
609 if (expectNextVsyncTime <= 0) { in SetExpectNextVsyncTimeInternal()
614 if (expectNextVsyncTime - referenceTime_ > 0) { in SetExpectNextVsyncTimeInternal()
615 … if (((expectNextVsyncTime - referenceTime_) % pulse_) < (pulse_ / 2)) { // check with 1/2 pulse in SetExpectNextVsyncTimeInternal()
616 … expectTime = ((expectNextVsyncTime - referenceTime_) / pulse_) * pulse_ + referenceTime_; in SetExpectNextVsyncTimeInternal()
618 … expectTime = ((expectNextVsyncTime - referenceTime_) / pulse_ + 1) * pulse_ + referenceTime_; in SetExpectNextVsyncTimeInternal()
623 " referenceTime_:%ld", expectTime, now, expectNextVsyncTime, referenceTime_); in SetExpectNextVsyncTimeInternal()
627 …_TRACE_NAME_FMT("expectNextVsyncTime:%ld, expectNextVsyncTime_:%ld, diff:%ld", expectNextVsyncTime, in SetExpectNextVsyncTimeInternal()
628 expectNextVsyncTime_, (expectNextVsyncTime_ - expectNextVsyncTime)); in SetExpectNextVsyncTimeInternal()
637 generatorRefreshRate, listenerPhaseOffset.phaseByPulseNum, expectNextVsyncTime); in ChangeGeneratorRefreshRateModel()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include/
H A Dvsync_generator.h64 int64_t expectNextVsyncTime = 0) = 0;
102 int64_t expectNextVsyncTime = 0) override;
154 VsyncError SetExpectNextVsyncTimeInternal(int64_t expectNextVsyncTime);