Lines Matching defs:LookupEntry
220 struct LookupEntry {
221 LookupEntry(const SkBitmap& bm)
235 LookupEntry* fMoreRecentlyUsed;
236 LookupEntry* fLessRecentlyUsed;
241 * Compare two LookupEntry pointers for sorting and searching.
243 static bool Less(const LookupEntry& a, const LookupEntry& b);
253 int removeEntryFromLookupTable(LookupEntry*);
263 int findInLookupTable(const LookupEntry& key, SkBitmapHeapEntry** entry);
265 LookupEntry* findEntryToReplace(const SkBitmap& replacement);
269 * Remove a LookupEntry from the LRU, in preparation for either deleting or appending as most
270 * recent. Points the LookupEntry's old neighbors at each other, and sets fLeastRecentlyUsed
271 * (if there is still an entry left). Sets LookupEntry's fMoreRecentlyUsed to NULL and leaves
274 void removeFromLRU(LookupEntry* entry);
277 * Append a LookupEntry to the end of the LRU cache, marking it as the most
278 * recently used. Assumes that the LookupEntry is already in fLookupTable,
282 void appendToLRU(LookupEntry*);
285 SkTDArray<LookupEntry*> fLookupTable;
294 LookupEntry* fMostRecentlyUsed;
295 LookupEntry* fLeastRecentlyUsed;