Lines Matching refs:LookupEntry
212 struct LookupEntry {
213 LookupEntry(const SkBitmap& bm)
227 LookupEntry* fMoreRecentlyUsed;
228 LookupEntry* fLessRecentlyUsed;
233 * Compare two LookupEntry pointers for sorting and searching.
235 static bool Less(const LookupEntry& a, const LookupEntry& b);
245 int removeEntryFromLookupTable(LookupEntry*);
255 int findInLookupTable(const LookupEntry& key, SkBitmapHeapEntry** entry);
257 LookupEntry* findEntryToReplace(const SkBitmap& replacement);
261 * Remove a LookupEntry from the LRU, in preparation for either deleting or appending as most
262 * recent. Points the LookupEntry's old neighbors at each other, and sets fLeastRecentlyUsed
263 * (if there is still an entry left). Sets LookupEntry's fMoreRecentlyUsed to nullptr and leaves
266 void removeFromLRU(LookupEntry* entry);
269 * Append a LookupEntry to the end of the LRU cache, marking it as the most
270 * recently used. Assumes that the LookupEntry is already in fLookupTable,
274 void appendToLRU(LookupEntry*);
277 SkTDArray<LookupEntry*> fLookupTable;
286 LookupEntry* fMostRecentlyUsed;
287 LookupEntry* fLeastRecentlyUsed;