mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-03-01 17:07:31 +00:00
commit
e0216f0af5
@ -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_;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user