mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 17:21:51 +00:00
commit
c537340619
@ -546,7 +546,7 @@ void VSyncDistributor::OnDVSyncTrigger(int64_t now, int64_t period, uint32_t ref
|
||||
|
||||
ChangeConnsRateLocked();
|
||||
ScopedBytrace func("pendingRNVInVsync: " + std::to_string(pendingRNVInVsync_) + " DVSyncOn: " +
|
||||
std::to_string(IsDVsyncOn()));
|
||||
std::to_string(IsDVsyncOn()) + " isRS:" + std::to_string(isRs_));
|
||||
if (dvsync_->WaitCond() || pendingRNVInVsync_) {
|
||||
con_.notify_all();
|
||||
} else {
|
||||
@ -776,12 +776,6 @@ VsyncError VSyncDistributor::RequestNextVSync(const sptr<VSyncConnection> &conne
|
||||
return VSYNC_ERROR_NULLPTR;
|
||||
}
|
||||
|
||||
#if defined(RS_ENABLE_DVSYNC)
|
||||
if (IsDVsyncOn() && fromWhom == "ltpoForceUpdate") {
|
||||
return VSYNC_ERROR_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
ScopedBytrace func(connection->info_.name_ + "_RequestNextVSync");
|
||||
std::unique_lock<std::mutex> locker(mutex_);
|
||||
|
||||
|
@ -305,7 +305,7 @@ void RSSubThread::DrawableCache(DrawableV2::RSSurfaceRenderNodeDrawable* nodeDra
|
||||
|
||||
RSSubThreadManager::Instance()->NodeTaskNotify(param->GetId());
|
||||
|
||||
RSMainThread::Instance()->RequestNextVSync();
|
||||
RSMainThread::Instance()->RequestNextVSync("subthread");
|
||||
|
||||
// mark nodedrawable can release
|
||||
RSUifirstManager::Instance().AddProcessDoneNode(param->GetId());
|
||||
|
@ -516,11 +516,7 @@ void RSMainThread::Init()
|
||||
RSMainThread::Instance()->SetForceUpdateUniRenderFlag(forceUpdate);
|
||||
RSMainThread::Instance()->SetIdleTimerExpiredFlag(idleTimerExpired);
|
||||
RS_TRACE_NAME_FMT("DVSyncIsOn: %d", this->rsVSyncDistributor_->IsDVsyncOn());
|
||||
if (forceUpdate) {
|
||||
RSMainThread::Instance()->RequestNextVSync("ltpoForceUpdate");
|
||||
} else {
|
||||
RSMainThread::Instance()->RequestNextVSync();
|
||||
}
|
||||
RSMainThread::Instance()->RequestNextVSync("ltpoForceUpdate");
|
||||
});
|
||||
});
|
||||
frameRateMgr_->Init(rsVSyncController_, appVSyncController_, vsyncGenerator_);
|
||||
|
Loading…
Reference in New Issue
Block a user