void _updateRRectFlag(bool isNaiveRRect, uiPathShapeHint shapeHint = uiPathShapeHint.Other, float corner = 0) { if (this._commands.Count > 0 && !this._isNaiveRRect) { return; } this._isNaiveRRect = isNaiveRRect && this._hasOnlyMoveTos(); this._shapeHint = shapeHint; this._rRectCorner = corner; }
public override void clear() { ObjectPool <uiList <float> > .release(this._commands); ObjectPool <uiPathCache> .release(this._cache); this._cache = null; this._commands = null; this.needCache = false; this.pathKey = 0; this._isNaiveRRect = false; this._shapeHint = uiPathShapeHint.Other; this._rRectCorner = 0; }