!5249 节点合并-文件夹闪动bug修复

Merge pull request !5249 from jason/master
This commit is contained in:
openharmony_ci 2023-07-09 08:12:12 +00:00 committed by Gitee
commit e0216f0af5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 1 deletions

View File

@ -220,6 +220,7 @@ void RSUniRenderVisitor::PrepareBaseRenderNode(RSBaseRenderNode& node)
for (auto& child : children) {
if (PrepareSharedTransitionNode(*child)) {
curDirty_ = child->IsDirty();
child->Prepare(shared_from_this());
}
}
@ -250,7 +251,7 @@ void RSUniRenderVisitor::UpdateCacheChangeStatus(RSBaseRenderNode& node)
static_cast<int>(isDrawingCacheChanged_));
} else {
// Any child node dirty causes cache change
isDrawingCacheChanged_ = isDrawingCacheChanged_ || targetNode->IsDirty();
isDrawingCacheChanged_ = isDrawingCacheChanged_ || curDirty_;
}
}

View File

@ -388,6 +388,7 @@ private:
bool needCacheImg_ = false;
uint32_t captureWindowZorder_ = 0;
std::optional<SkPath> effectRegion_ = std::nullopt;
bool curDirty_ = false;
};
} // namespace Rosen
} // namespace OHOS