Rename clipMode to clipBehavior in compositing.dart (flutter/engine#6053)

This is a follow up of https://github.com/flutter/engine/pull/5853
This commit is contained in:
liyuqian
2018-08-20 12:56:30 -07:00
committed by GitHub
parent 405a95fa03
commit 3766540e1e

View File

@@ -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.