Allow infinite cull rectangles on a Canvas (flutter/engine#3975)

This commit is contained in:
Jason Simmons
2017-08-10 17:20:59 -07:00
committed by GitHub
parent 0f2c77f194
commit 22e8ceec69

View File

@@ -1408,7 +1408,7 @@ class Canvas extends NativeFieldWrapperClass2 {
assert(recorder != null);
if (recorder.isRecording)
throw new ArgumentError('"recorder" must not already be associated with another Canvas.');
assert(_rectIsValid(cullRect));
assert(cullRect != null);
_constructor(recorder, cullRect.left, cullRect.top, cullRect.right, cullRect.bottom);
}
void _constructor(PictureRecorder recorder,