Skip to content

Commit

Permalink
Anti-Aliasing for shape layers (flutter#8157)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Mar 13, 2019
1 parent 906d684 commit fdad56f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow/layers/physical_shape_layer.cc
Expand Up @@ -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);
}
Expand Down

0 comments on commit fdad56f

Please sign in to comment.