Commit c90983dd authored by Amir Hardon's avatar Amir Hardon Committed by amirh

add a pushClipRRect override to TestRecordingPaintingContext

parent cc060ff2
...@@ -110,6 +110,14 @@ class TestRecordingPaintingContext implements PaintingContext { ...@@ -110,6 +110,14 @@ class TestRecordingPaintingContext implements PaintingContext {
canvas.restore(); canvas.restore();
} }
@override
void pushClipRRect(bool needsCompositing, Offset offset, Rect bounds, RRect clipRRect, PaintingContextCallback painter) {
canvas.save();
canvas.clipRRect(clipRRect.shift(offset));
painter(this, offset);
canvas.restore();
}
@override @override
void pushClipPath(bool needsCompositing, Offset offset, Rect bounds, Path clipPath, PaintingContextCallback painter) { void pushClipPath(bool needsCompositing, Offset offset, Rect bounds, Path clipPath, PaintingContextCallback painter) {
canvas canvas
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment