Clean codestyle issue. Add and modify *refreshRate var/api to replace *freshRate

Signed-off-by: shiyueeee <nieshiyue@huawei.com>
Change-Id: I8acc9c8fac0e9f08551476d200f23ed8f52beb05
This commit is contained in:
shiyueeee
2022-03-03 12:59:06 +08:00
parent 286f8bdc81
commit 8bc3f0831b
17 changed files with 47 additions and 36 deletions
+2 -2
View File
@@ -300,7 +300,7 @@ bool AbstractScreenController::FillAbstractScreen(sptr<AbstractScreen>& absScree
sptr<SupportedScreenModes> info = new SupportedScreenModes();
info->width_ = static_cast<uint32_t>(rsScreenModeInfo.GetScreenWidth());
info->height_ = static_cast<uint32_t>(rsScreenModeInfo.GetScreenHeight());
info->freshRate_ = rsScreenModeInfo.GetScreenFreshRate();
info->refreshRate_ = rsScreenModeInfo.GetScreenFreshRate();
absScreen->modes_.push_back(info);
WLOGD("fill screen w/h:%{public}d/%{public}d", info->width_, info->height_);
}
@@ -449,7 +449,7 @@ ScreenId AbstractScreenController::CreateVirtualScreen(VirtualScreenOption optio
info->height_ = option.height_;
auto defaultScreen = GetAbstractScreen(GetDefaultAbstractScreenId());
if (defaultScreen != nullptr && defaultScreen->GetActiveScreenMode() != nullptr) {
info->freshRate_ = defaultScreen->GetActiveScreenMode()->freshRate_;
info->refreshRate_ = defaultScreen->GetActiveScreenMode()->refreshRate_;
}
absScreen->modes_.push_back(info);
absScreen->activeIdx_ = 0;