Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fc9f4a2

Browse files
committed
Always save canvas and correctly pass antialias boolean in ClipRects.
1 parent 5a19d76 commit fc9f4a2

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)