Skip to content

Commit 93dac2a

Browse files
authored
Always save canvas and correctly pass antialias boolean in ClipRects. (flutter#6199)
1 parent 16c56af commit 93dac2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/layers/clip_rect_layer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ void ClipRectLayer::Paint(PaintContext& context) const {
4141
TRACE_EVENT0("flutter", "ClipRectLayer::Paint");
4242
FML_DCHECK(needs_painting());
4343

44-
SkAutoCanvasRestore save(&context.canvas, clip_behavior_ != Clip::hardEdge);
45-
context.canvas.clipRect(paint_bounds());
44+
SkAutoCanvasRestore save(&context.canvas, true);
45+
context.canvas.clipRect(paint_bounds(), clip_behavior_ != Clip::hardEdge);
4646
if (clip_behavior_ == Clip::antiAliasWithSaveLayer) {
4747
context.canvas.saveLayer(paint_bounds(), nullptr);
4848
}

0 commit comments

Comments
 (0)