Rename clip to clipBehavior in compositing.dart (flutter/engine#5868)

The is a follow up of https://github.com/flutter/engine/pull/5853
This commit is contained in:
liyuqian
2018-07-25 15:39:01 -07:00
committed by GitHub
parent 4cf4ffab2e
commit 9ff7e1a350

View File

@@ -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';