public void AddRowRef(int row) { if (Int32Util.IsClamped(row, 0, this.height - 1)) { this.rowRefCounts[row]++; } }
public void ReleaseRowRef(int row) { if (Int32Util.IsClamped(row, 0, this.height - 1)) { this.rowRefCounts[row]--; if ((this.rowRefCounts[row] == 0) && this.IsRowCached(row)) { this.FreeRow(row); } } }