浏览代码

restore assertion

/main
xingwei.zhu 5 年前
当前提交
84d48468
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      Runtime/ui/painting/picture.cs

5
Runtime/ui/painting/picture.cs


public Picture endRecording() {
this.restoreToCount(1);
if (this._states.Count > 1) {
throw new Exception("unmatched save/restore commands");
}
var state = this._getState();
return new Picture(new List<DrawCmd>(this._drawCmds), state.paintBounds, this._isDynamic);
}

正在加载...
取消
保存