Home | History | Annotate | Download | only in core

Lines Matching defs:lookupEntry

38 bool SkBitmapHeap::LookupEntry::Less(const SkBitmapHeap::LookupEntry& a,
39 const SkBitmapHeap::LookupEntry& b) {
118 void SkBitmapHeap::removeFromLRU(SkBitmapHeap::LookupEntry* entry) {
146 void SkBitmapHeap::appendToLRU(SkBitmapHeap::LookupEntry* entry) {
159 SkBitmapHeap::LookupEntry* SkBitmapHeap::findEntryToReplace(const SkBitmap& replacement) {
163 SkBitmapHeap::LookupEntry* iter = fLeastRecentlyUsed;
188 LookupEntry* iter = fLeastRecentlyUsed;
197 LookupEntry* next = iter->fMoreRecentlyUsed;
228 int SkBitmapHeap::findInLookupTable(const LookupEntry& indexEntry, SkBitmapHeapEntry** entry) {
229 int index = SkTSearch<const LookupEntry, LookupEntry::Less>(
230 (const LookupEntry**)fLookupTable.begin(),
237 *fLookupTable.insert(index) = SkNEW_ARGS(LookupEntry, (indexEntry));
266 int SkBitmapHeap::removeEntryFromLookupTable(LookupEntry* entry) {
281 int searchIndex = this->findInLookupTable(LookupEntry(originalBitmap), &entry);
293 LookupEntry* lookupEntry = fLookupTable[searchIndex];
294 if (lookupEntry != fMostRecentlyUsed) {
295 this->removeFromLRU(lookupEntry);
296 this->appendToLRU(lookupEntry);
305 LookupEntry* lookupEntry = this->findEntryToReplace(originalBitmap);
306 if (lookupEntry != NULL) {
308 entry = fStorage[lookupEntry->fStorageSlot];
310 this->removeFromLRU(lookupEntry);
311 int index = this->removeEntryFromLookupTable(lookupEntry);