From aefd77ae94f9eae9e715c8637c26cc68cdf56795 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Fri, 16 Jun 2017 23:43:12 -0700 Subject: [PATCH] Allow infinite cull rects. (flutter/engine#3787) --- engine/src/flutter/lib/ui/painting.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index b0809a968e..888bf27308 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -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,