Allow infinite cull rects. (flutter/engine#3787)

This commit is contained in:
Ian Hickson
2017-06-16 23:43:12 -07:00
committed by GitHub
parent 756341be6e
commit aefd77ae94

View File

@@ -1350,9 +1350,6 @@ class Canvas extends NativeFieldWrapperClass2 {
throw new ArgumentError('"recorder" must not be null.');
if (recorder.isRecording)
throw new ArgumentError('"recorder" must not already be associated with another Canvas.');
if (!cullRect.isFinite)
throw new ArgumentError('"cullRect" must not contain infinite or NaN coordinates.');
// TODO(ianh): throw if recorder is defunct (https://github.com/flutter/flutter/issues/2531)
_constructor(recorder, cullRect.left, cullRect.top, cullRect.right, cullRect.bottom);
}
void _constructor(PictureRecorder recorder,