未验证 提交 e26643fa 编写于 作者: L liyuqian 提交者: GitHub

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

This is a follow up of https://github.com/flutter/engine/pull/5853
上级 aba09a24
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册