We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c56af commit 93dac2aCopy full SHA for 93dac2a
flow/layers/clip_rect_layer.cc
@@ -41,8 +41,8 @@ void ClipRectLayer::Paint(PaintContext& context) const {
41
TRACE_EVENT0("flutter", "ClipRectLayer::Paint");
42
FML_DCHECK(needs_painting());
43
44
- SkAutoCanvasRestore save(&context.canvas, clip_behavior_ != Clip::hardEdge);
45
- context.canvas.clipRect(paint_bounds());
+ SkAutoCanvasRestore save(&context.canvas, true);
+ context.canvas.clipRect(paint_bounds(), clip_behavior_ != Clip::hardEdge);
46
if (clip_behavior_ == Clip::antiAliasWithSaveLayer) {
47
context.canvas.saveLayer(paint_bounds(), nullptr);
48
}
0 commit comments