mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
!49083 fix codestyle
Merge pull request !49083 from gaoguanghuione/1121
This commit is contained in:
commit
2afffa582e
@ -428,7 +428,7 @@ void WindowScene::OnActivation()
|
||||
void WindowScene::DisposeSnapshotAndBlankWindow()
|
||||
{
|
||||
CHECK_NULL_VOID(session_);
|
||||
if (session_->GetBlankFlag()) {
|
||||
if (session_->GetBlank()) {
|
||||
return;
|
||||
}
|
||||
auto surfaceNode = session_->GetSurfaceNode();
|
||||
@ -622,9 +622,9 @@ bool WindowScene::IsWindowSizeEqual()
|
||||
bool WindowScene::OnDirtyLayoutWrapperSwap(const RefPtr<LayoutWrapper>& dirty, const DirtySwapConfig& config)
|
||||
{
|
||||
CHECK_EQUAL_RETURN(IsMainWindow(), false, false);
|
||||
CHECK_EQUAL_RETURN(attachToFrameNodeFlag_ || session_->GetBlankFlag(), false, false);
|
||||
CHECK_EQUAL_RETURN(attachToFrameNodeFlag_ || session_->GetBlank(), false, false);
|
||||
attachToFrameNodeFlag_ = false;
|
||||
CHECK_EQUAL_RETURN(session_->GetShowRecent() && !session_->GetBlankFlag(), true, false);
|
||||
CHECK_EQUAL_RETURN(session_->GetShowRecent() && !session_->GetBlank(), true, false);
|
||||
auto surfaceNode = session_->GetSurfaceNode();
|
||||
if (surfaceNode) {
|
||||
surfaceNode->SetBufferAvailableCallback(callback_);
|
||||
@ -637,12 +637,12 @@ bool WindowScene::OnDirtyLayoutWrapperSwap(const RefPtr<LayoutWrapper>& dirty, c
|
||||
auto size = geometryNode->GetFrameSize();
|
||||
ACE_SCOPED_TRACE("WindowSCENE::OnDirtyLayoutWrapperSwap[id:%d][%f %f][%d %d][blank:%d]",
|
||||
session_->GetPersistentId(), size.Width(), size.Height(),
|
||||
session_->GetLayoutRect().width_, session_->GetLayoutRect().height_, session_->GetBlankFlag());
|
||||
session_->GetLayoutRect().width_, session_->GetLayoutRect().height_, session_->GetBlank());
|
||||
if (NearEqual(size.Width(), session_->GetLayoutRect().width_, 1.0f) &&
|
||||
NearEqual(size.Height(), session_->GetLayoutRect().height_, 1.0f) && !session_->GetBlankFlag()) {
|
||||
NearEqual(size.Height(), session_->GetLayoutRect().height_, 1.0f) && !session_->GetBlank()) {
|
||||
return false;
|
||||
}
|
||||
session_->SetBlankFlag(false);
|
||||
session_->SetBlank(false);
|
||||
auto host = GetHost();
|
||||
CHECK_NULL_RETURN(host, false);
|
||||
RemoveChild(host, snapshotWindow_, snapshotWindowName_);
|
||||
|
Loading…
Reference in New Issue
Block a user