예제 #1
0
 public void AddRowRef(int row)
 {
     if (Int32Util.IsClamped(row, 0, this.height - 1))
     {
         this.rowRefCounts[row]++;
     }
 }
예제 #2
0
 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);
         }
     }
 }