forked from firka/flutter
Anti-Aliasing for shape layers (flutter/engine#8157)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user