!10360 bugfix for weather app display

Merge pull request !10360 from Hw_zz/zhlocal0424
This commit is contained in:
openharmony_ci 2024-04-24 08:32:09 +00:00 committed by Gitee
commit 79c8fb8c89
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 15 deletions

View File

@ -1621,9 +1621,6 @@ void RSUniRenderVisitor::UpdateHwcNodeInfoForAppNode(RSSurfaceRenderNode& node)
UpdateHwcNodeByTransform(node);
UpdateHwcNodeEnableByBackgroundAlpha(node);
UpdateHwcNodeEnableBySrcRect(node);
if (!node.IsHardwareForcedDisabled()) {
node.SetIntersectByFilterInApp(true);
}
}
}
@ -1902,7 +1899,6 @@ void RSUniRenderVisitor::UpdateHwcNodeDirtyRegionAndCreateLayer(std::shared_ptr<
continue;
}
UpdateHwcNodeDirtyRegionForApp(node, hwcNodePtr);
hwcNodePtr->SetIntersectByFilterInApp(false);
hwcNodePtr->SetCalcRectInPrepare(false);
auto transform = RSUniRenderUtil::GetLayerTransform(*hwcNodePtr, screenInfo_);
hwcNodePtr->UpdateHwcNodeLayerInfo(transform);
@ -2333,7 +2329,7 @@ void RSUniRenderVisitor::UpdateHwcNodeEnableByFilterRect(
// [planning]: Has opaque control exists between the filter and hwc.
for (auto hwcNode : hwcNodes) {
auto hwcNodePtr = hwcNode.lock();
if (!hwcNodePtr || !hwcNodePtr->GetIntersectByFilterInApp()) {
if (!hwcNodePtr) {
continue;
}
auto dstRect = hwcNodePtr->GetDstRect();

View File

@ -294,16 +294,6 @@ public:
calcRectInPrepare_ = calc;
}
void SetIntersectByFilterInApp(bool intersect)
{
intersectByFilterInApp_ = intersect;
}
bool GetIntersectByFilterInApp() const
{
return intersectByFilterInApp_;
}
bool IsSelfDrawingType() const
{
// self drawing surfacenode has its own buffer, and rendered in its own progress/thread