!3718 去除leashWindow裁剪限制

Merge pull request !3718 from chenhaiying/master
This commit is contained in:
openharmony_ci 2023-02-21 13:03:30 +00:00 committed by Gitee
commit 35a0efccbf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1559,13 +1559,10 @@ void RSUniRenderVisitor::ProcessSurfaceRenderNode(RSSurfaceRenderNode& node)
RRect absClipRRect = RRect(absBounds, property.GetCornerRadius());
RSPropertiesPainter::DrawShadow(property, *canvas_, &absClipRRect);
// Fix bug that when AppWindow has shadow set by config.xml cannot be displayed for LEASH_WINDOW_NODE has clipped canvas.
if (node.GetSurfaceNodeType() != RSSurfaceNodeType::LEASH_WINDOW_NODE) {
if (!property.GetCornerRadius().IsZero()) {
canvas_->clipRRect(RSPropertiesPainter::RRect2SkRRect(absClipRRect), true);
} else {
canvas_->clipRect(SkRect::MakeWH(property.GetBoundsWidth(), property.GetBoundsHeight()));
}
if (!property.GetCornerRadius().IsZero()) {
canvas_->clipRRect(RSPropertiesPainter::RRect2SkRRect(absClipRRect), true);
} else {
canvas_->clipRect(SkRect::MakeWH(property.GetBoundsWidth(), property.GetBoundsHeight()));
}
RSPropertiesPainter::DrawBackground(property, *canvas_);