From bb69b40272abcbf10ac5dc8de8b91fecddc6a68c Mon Sep 17 00:00:00 2001 From: Dan Field Date: Wed, 13 Mar 2019 14:26:42 -0700 Subject: [PATCH] Anti-Aliasing for shape layers (flutter/engine#8157) --- engine/src/flutter/flow/layers/physical_shape_layer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/flow/layers/physical_shape_layer.cc b/engine/src/flutter/flow/layers/physical_shape_layer.cc index 005945f8f5..93bd2664a9 100644 --- a/engine/src/flutter/flow/layers/physical_shape_layer.cc +++ b/engine/src/flutter/flow/layers/physical_shape_layer.cc @@ -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); }