From 0df374dd836e2591b973dbc7d622bd9f78f0037c Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 30 Aug 2016 14:11:21 -0700 Subject: [PATCH] Force anti-aliasing on clipRRect calls. (flutter/engine#2982) Per recommendation from the Skia team. Benefits from optimizations applied in Skia for Chrome. --- engine/src/flutter/flow/layers/clip_rrect_layer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/flow/layers/clip_rrect_layer.cc b/engine/src/flutter/flow/layers/clip_rrect_layer.cc index 78b09d6452..59da010d5b 100644 --- a/engine/src/flutter/flow/layers/clip_rrect_layer.cc +++ b/engine/src/flutter/flow/layers/clip_rrect_layer.cc @@ -21,7 +21,7 @@ void ClipRRectLayer::Paint(PaintContext& context) { TRACE_EVENT0("flutter", "ClipRRectLayer::Paint"); SkAutoCanvasRestore save(&context.canvas, false); context.canvas.saveLayer(&paint_bounds(), nullptr); - context.canvas.clipRRect(clip_rrect_); + context.canvas.clipRRect(clip_rrect_, SkRegion::kIntersect_Op, true); PaintChildren(context); }