add a pushClipRRect override to TestRecordingPaintingContext

This commit is contained in:
Amir Hardon 2018-02-05 12:26:18 -08:00 committed by amirh
parent cc060ff2f2
commit c90983dde9

View File

@ -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