浏览代码

improve batch efficiency when long paragraph is selected

/main
xingwei.zhu 6 年前
当前提交
6ab94493
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Runtime/rendering/paragraph.cs

4
Runtime/rendering/paragraph.cs


D.assert(this.selectionColor != null);
var paint = new Paint {color = this.selectionColor};
Path barPath = new Path();
canvas.drawRect(box.toRect().shift(effectiveOffset), paint);
barPath.addRect(box.toRect().shift(effectiveOffset));
canvas.drawPath(barPath, paint);
}
void _layoutText(float minWidth = 0.0f, float maxWidth = float.PositiveInfinity) {

正在加载...
取消
保存