Anti-Aliasing for shape layers (flutter/engine#8157)

This commit is contained in:
Dan Field
2019-03-13 14:26:42 -07:00
committed by GitHub
parent 0809280550
commit bb69b40272

View File

@@ -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);
}