mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-30 10:41:29 +00:00
set power on in bootanimation
Signed-off-by: c00607827 <cenyouyi@huawei.com>
This commit is contained in:
parent
f5a37da805
commit
a6a8f39535
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user