add a pushClipRRect override to TestRecordingPaintingContext
This commit is contained in:
parent
cc060ff2f2
commit
c90983dde9
@ -110,6 +110,14 @@ class TestRecordingPaintingContext implements PaintingContext {
|
||||
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
|
||||
void pushClipPath(bool needsCompositing, Offset offset, Rect bounds, Path clipPath, PaintingContextCallback painter) {
|
||||
canvas
|
||||
|
Loading…
x
Reference in New Issue
Block a user