mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Anti-Aliasing for shape layers (#8157)
This commit is contained in:
parent
906d684a77
commit
fdad56f5fb
@ -142,6 +142,7 @@ void PhysicalShapeLayer::Paint(PaintContext& context) const {
|
||||
// Call drawPath without clip if possible for better performance.
|
||||
SkPaint paint;
|
||||
paint.setColor(color_);
|
||||
paint.setAntiAlias(true);
|
||||
if (clip_behavior_ != Clip::antiAliasWithSaveLayer) {
|
||||
context.leaf_nodes_canvas->drawPath(path_, paint);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user