set power on in bootanimation

Signed-off-by: c00607827 <cenyouyi@huawei.com>
This commit is contained in:
c00607827 2023-12-04 19:13:13 +08:00
parent f5a37da805
commit a6a8f39535
2 changed files with 5 additions and 2 deletions

View File

@ -144,9 +144,8 @@ void BootAnimation::Run(Rosen::ScreenId id, int screenWidth, int screenHeight)
{
LOGI("Run enter");
animationConfig_.ParserCustomCfgFile();
Rosen::RSInterfaces& interface = Rosen::RSInterfaces::GetInstance();
if (animationConfig_.GetRotateScreenId() >= 0) {
Rosen::RSInterfaces& interface = Rosen::RSInterfaces::GetInstance();
id = interface.GetActiveScreenId();
Rosen::RSScreenModeInfo modeinfo = interface.GetScreenActiveMode(id);
screenWidth = modeinfo.GetScreenWidth();
@ -157,6 +156,8 @@ void BootAnimation::Run(Rosen::ScreenId id, int screenWidth, int screenHeight)
LOGI("SetScreenPowerStatus POWER_STATUS_ON: %{public}llu", id);
interface.SetScreenPowerStatus(id, Rosen::ScreenPowerStatus::POWER_STATUS_ON);
}
} else if (interface.GetScreenPowerStatus(id) != Rosen::ScreenPowerStatus::POWER_STATUS_ON) {
interface.SetScreenPowerStatus(id, Rosen::ScreenPowerStatus::POWER_STATUS_ON);
}
runner_ = AppExecFwk::EventRunner::Create(false);

View File

@ -1604,6 +1604,8 @@ void RSMainThread::CalcOcclusionImplementation(std::vector<RSBaseRenderNode::Sha
filterCacheOcclusionEnabled);
} else {
curSurface->SetVisibleRegionRecursive({}, curVisVec, pidVisMap);
RS_LOGD("%{public}s nodeId[%{public}" PRIu64 "] visibleLevel[%{public}d]",
__func__, curSurface->GetId(), RSVisibleLevel::RS_INVISIBLE);
}
}