@@ -2886,15 +2886,6 @@ class Canvas extends NativeFieldWrapperClass2 {
28862886 /// cause the new layer to be composited into the previous layer.
28872887 void restore () native 'Canvas_restore' ;
28882888
2889- /// Restore the current save stack to the state where [saveCount] is gotten.
2890- ///
2891- /// Use [save] and [saveLayer] to push state onto the stack, and use
2892- /// [getSaveCount] to get the [saveCount] .
2893- ///
2894- /// If a state was pushed with with [saveLayer] , then this call will also
2895- /// cause the new layer to be composited into the previous layer.
2896- void restoreToCount (int saveCount) native 'Canvas_restoreToCount' ;
2897-
28982889 /// Returns the number of items on the save stack, including the
28992890 /// initial state. This means it returns 1 for a clean canvas, and
29002891 /// that each call to [save] and [saveLayer] increments it, and that
@@ -2965,11 +2956,11 @@ class Canvas extends NativeFieldWrapperClass2 {
29652956 /// multiple draw commands intersect with the clip boundary, this can result
29662957 /// in incorrect blending at the clip boundary. See [saveLayer] for a
29672958 /// discussion of how to address that and some examples of using [clipRRect] .
2968- void clipRRect (RRect rrect, [ bool doAntiAlias = true ] ) {
2959+ void clipRRect (RRect rrect) {
29692960 assert (_rrectIsValid (rrect));
2970- _clipRRect (rrect._value, doAntiAlias );
2961+ _clipRRect (rrect._value);
29712962 }
2972- void _clipRRect (Float32List rrect, bool doAntiAlias ) native 'Canvas_clipRRect' ;
2963+ void _clipRRect (Float32List rrect) native 'Canvas_clipRRect' ;
29732964
29742965 /// Reduces the clip region to the intersection of the current clip and the
29752966 /// given [Path] .
@@ -2978,11 +2969,11 @@ class Canvas extends NativeFieldWrapperClass2 {
29782969 /// multiple draw commands intersect with the clip boundary, this can result
29792970 /// in incorrect blending at the clip boundary. See [saveLayer] for a
29802971 /// discussion of how to address that.
2981- void clipPath (Path path, [ bool doAntiAlias = true ] ) {
2972+ void clipPath (Path path) {
29822973 assert (path != null ); // path is checked on the engine side
2983- _clipPath (path, doAntiAlias );
2974+ _clipPath (path);
29842975 }
2985- void _clipPath (Path path, bool doAntiAlias ) native 'Canvas_clipPath' ;
2976+ void _clipPath (Path path) native 'Canvas_clipPath' ;
29862977
29872978 /// Paints the given [Color] onto the canvas, applying the given
29882979 /// [BlendMode] , with the given color being the source and the background
0 commit comments