浏览代码

fix clip layer.

/main
kg 6 年前
当前提交
9cd83bd0
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1
      Runtime/flow/clip_path_layer.cs
  2. 1
      Runtime/flow/clip_rect_layer.cs
  3. 1
      Runtime/flow/clip_rrect_layer.cs

1
Runtime/flow/clip_path_layer.cs


var clipPathBounds = this._clipPath.getBounds();
context.cullRect = context.cullRect.intersect(clipPathBounds);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

1
Runtime/flow/clip_rect_layer.cs


context.cullRect = context.cullRect.intersect(this._clipRect);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

1
Runtime/flow/clip_rrect_layer.cs


var clipPathBounds = this._clipRRect.outerRect;
context.cullRect = context.cullRect.intersect(clipPathBounds);
this.paintBounds = Rect.zero;
if (!context.cullRect.isEmpty) {
var childPaintBounds = Rect.zero;
this.prerollChildren(context, matrix, ref childPaintBounds);

正在加载...
取消
保存