From 1d1c8c7b56d17d973ad86c9d88dd3969f8a3404c Mon Sep 17 00:00:00 2001 From: liyuqian Date: Wed, 25 Jul 2018 15:39:01 -0700 Subject: [PATCH] Rename clip to clipBehavior in compositing.dart (#5868) The is a follow up of https://github.com/flutter/engine/pull/5853 --- lib/ui/compositing.dart | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index f83a7deb4af4..9e3b4a3060b9 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -68,10 +68,10 @@ class SceneBuilder extends NativeFieldWrapperClass2 { /// /// See [pop] for details about the operation stack, and [Clip] for different clip modes. /// By default, the clip will be anti-aliased (clip = [Clip.antiAlias]). - void pushClipRect(Rect rect, {Clip clip = Clip.antiAlias}) { - assert(clip != null); - assert(clip != Clip.none); - _pushClipRect(rect.left, rect.right, rect.top, rect.bottom, clip.index); + void pushClipRect(Rect rect, {Clip clipBehavior = Clip.antiAlias}) { + assert(clipBehavior != null); + assert(clipBehavior != Clip.none); + _pushClipRect(rect.left, rect.right, rect.top, rect.bottom, clipBehavior.index); } void _pushClipRect(double left, double right, @@ -85,10 +85,10 @@ class SceneBuilder extends NativeFieldWrapperClass2 { /// /// See [pop] for details about the operation stack, and [Clip] for different clip modes. /// By default, the clip will be anti-aliased (clip = [Clip.antiAlias]). - void pushClipRRect(RRect rrect, {Clip clip = Clip.antiAlias}) { - assert(clip != null); - assert(clip != Clip.none); - _pushClipRRect(rrect._value, clip.index); + void pushClipRRect(RRect rrect, {Clip clipBehavior = Clip.antiAlias}) { + assert(clipBehavior != null); + assert(clipBehavior != Clip.none); + _pushClipRRect(rrect._value, clipBehavior.index); } void _pushClipRRect(Float32List rrect, int clipMode) native 'SceneBuilder_pushClipRRect'; @@ -98,10 +98,10 @@ class SceneBuilder extends NativeFieldWrapperClass2 { /// /// See [pop] for details about the operation stack. See [Clip] for different clip modes. /// By default, the clip will be anti-aliased (clip = [Clip.antiAlias]). - void pushClipPath(Path path, {Clip clip = Clip.antiAlias}) { - assert(clip != null); - assert(clip != Clip.none); - _pushClipPath(path, clip.index); + void pushClipPath(Path path, {Clip clipBehavior = Clip.antiAlias}) { + assert(clipBehavior != null); + assert(clipBehavior != Clip.none); + _pushClipPath(path, clipBehavior.index); } void _pushClipPath(Path path, int clipMode) native 'SceneBuilder_pushClipPath'; @@ -168,8 +168,8 @@ class SceneBuilder extends NativeFieldWrapperClass2 { /// /// See [pop] for details about the operation stack, and [Clip] for different clip modes. // ignore: deprecated_member_use - void pushPhysicalShape({ Path path, double elevation, Color color, Color shadowColor, Clip clip = defaultClipBehavior}) { - _pushPhysicalShape(path, elevation, color.value, shadowColor?.value ?? 0xFF000000, clip.index); + void pushPhysicalShape({ Path path, double elevation, Color color, Color shadowColor, Clip clipBehavior = defaultClipBehavior}) { + _pushPhysicalShape(path, elevation, color.value, shadowColor?.value ?? 0xFF000000, clipBehavior.index); } void _pushPhysicalShape(Path path, double elevation, int color, int shadowColor, int clipMode) native 'SceneBuilder_pushPhysicalShape';