From e26643faf83f865deda65a68b2342bbd46c96093 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Mon, 20 Aug 2018 12:56:30 -0700 Subject: [PATCH] Rename clipMode to clipBehavior in compositing.dart (#6053) This is a follow up of https://github.com/flutter/engine/pull/5853 --- lib/ui/compositing.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ui/compositing.dart b/lib/ui/compositing.dart index 2371bbb95..d27533c76 100644 --- a/lib/ui/compositing.dart +++ b/lib/ui/compositing.dart @@ -77,7 +77,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 { double right, double top, double bottom, - int clipMode) native 'SceneBuilder_pushClipRect'; + int clipBehavior) native 'SceneBuilder_pushClipRect'; /// Pushes a rounded-rectangular clip operation onto the operation stack. /// @@ -90,7 +90,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 { assert(clipBehavior != Clip.none); _pushClipRRect(rrect._value, clipBehavior.index); } - void _pushClipRRect(Float32List rrect, int clipMode) native 'SceneBuilder_pushClipRRect'; + void _pushClipRRect(Float32List rrect, int clipBehavior) native 'SceneBuilder_pushClipRRect'; /// Pushes a path clip operation onto the operation stack. /// @@ -103,7 +103,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 { assert(clipBehavior != Clip.none); _pushClipPath(path, clipBehavior.index); } - void _pushClipPath(Path path, int clipMode) native 'SceneBuilder_pushClipPath'; + void _pushClipPath(Path path, int clipBehavior) native 'SceneBuilder_pushClipPath'; /// Pushes an opacity operation onto the operation stack. /// @@ -171,7 +171,7 @@ class SceneBuilder extends NativeFieldWrapperClass2 { 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 + void _pushPhysicalShape(Path path, double elevation, int color, int shadowColor, int clipBehavior) native 'SceneBuilder_pushPhysicalShape'; /// Ends the effect of the most recently pushed operation. -- GitLab