Anti-Aliasing for shape layers (#8157)

This commit is contained in:
Dan Field 2019-03-13 14:26:42 -07:00 committed by GitHub
parent 906d684a77
commit fdad56f5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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