!7464 修复frameRateLinkerEnable的默认值为无效帧率

Merge pull request !7464 from Klein-CK/wm_0716
This commit is contained in:
openharmony_ci 2024-07-16 10:14:01 +00:00 committed by Gitee
commit 6473b72286
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -105,8 +105,8 @@ void VsyncStation::SetFrameRateLinkerEnable(bool enabled)
FrameRateRange range = {0, RANGE_MAX_REFRESHRATE, 0};
WLOGI("VsyncStation::FlushFrameRateImme %{public}d, linkerID = %{public}" PRIu64,
range.preferred_, frameRateLinker_->GetId());
frameRateLinker_->UpdateFrameRateRange(range, true);
frameRateLinker_->UpdateFrameRateRangeImme(range, true);
frameRateLinker_->UpdateFrameRateRange(range);
frameRateLinker_->UpdateFrameRateRangeImme(range);
}
frameRateLinker_->SetEnable(enabled);
}