Lines Matching refs:row

106         AtlasRow* row = fKeyTable[index];  in lockRow()  local
107 if (0 == row->fLocks) { in lockRow()
108 this->removeFromLRU(row); in lockRow()
110 ++row->fLocks; in lockRow()
115 rowNumber = static_cast<int>(row - fRows); in lockRow()
121 AtlasRow* row = this->getLRU(); in lockRow() local
125 if (NULL == row) { in lockRow()
128 row = this->getLRU(); in lockRow()
129 if (NULL == row) { in lockRow()
135 this->removeFromLRU(row); in lockRow()
137 uint32_t oldKey = row->fKey; in lockRow()
153 row->fKey = key; in lockRow()
154 row->fLocks = 1; in lockRow()
155 fKeyTable.insert(index, 1, &row); in lockRow()
156 rowNumber = static_cast<int>(row - fRows); in lockRow()
175 void GrTextureStripAtlas::unlockRow(int row) { in unlockRow() argument
177 --fRows[row].fLocks; in unlockRow()
179 SkASSERT(fRows[row].fLocks >= 0 && fLockedRows >= 0); in unlockRow()
180 if (0 == fRows[row].fLocks) { in unlockRow()
181 this->appendLRU(fRows + row); in unlockRow()
191 AtlasRow* row = fLRUFront; in getLRU() local
192 return row; in getLRU()
241 void GrTextureStripAtlas::appendLRU(AtlasRow* row) { in appendLRU() argument
242 SkASSERT(NULL == row->fPrev && NULL == row->fNext); in appendLRU()
244 fLRUFront = row; in appendLRU()
245 fLRUBack = row; in appendLRU()
247 row->fPrev = fLRUBack; in appendLRU()
248 fLRUBack->fNext = row; in appendLRU()
249 fLRUBack = row; in appendLRU()
253 void GrTextureStripAtlas::removeFromLRU(AtlasRow* row) { in removeFromLRU() argument
254 SkASSERT(row); in removeFromLRU()
255 if (row->fNext && row->fPrev) { in removeFromLRU()
256 row->fPrev->fNext = row->fNext; in removeFromLRU()
257 row->fNext->fPrev = row->fPrev; in removeFromLRU()
259 if (NULL == row->fNext) { in removeFromLRU()
260 SkASSERT(row == fLRUBack); in removeFromLRU()
261 fLRUBack = row->fPrev; in removeFromLRU()
266 if (NULL == row->fPrev) { in removeFromLRU()
267 SkASSERT(row == fLRUFront); in removeFromLRU()
268 fLRUFront = row->fNext; in removeFromLRU()
274 row->fNext = NULL; in removeFromLRU()
275 row->fPrev = NULL; in removeFromLRU()