Lines Matching refs:entry
47 Entry* entry = fHead; in ~SkGradientBitmapCache() local
48 while (entry) { in ~SkGradientBitmapCache()
49 Entry* next = entry->fNext; in ~SkGradientBitmapCache()
50 delete entry; in ~SkGradientBitmapCache()
51 entry = next; in ~SkGradientBitmapCache()
55 SkGradientBitmapCache::Entry* SkGradientBitmapCache::release(Entry* entry) const { in release()
56 if (entry->fPrev) { in release()
57 SkASSERT(fHead != entry); in release()
58 entry->fPrev->fNext = entry->fNext; in release()
60 SkASSERT(fHead == entry); in release()
61 fHead = entry->fNext; in release()
63 if (entry->fNext) { in release()
64 SkASSERT(fTail != entry); in release()
65 entry->fNext->fPrev = entry->fPrev; in release()
67 SkASSERT(fTail == entry); in release()
68 fTail = entry->fPrev; in release()
70 return entry; in release()
73 void SkGradientBitmapCache::attachToHead(Entry* entry) const { in attachToHead()
74 entry->fPrev = nullptr; in attachToHead()
75 entry->fNext = fHead; in attachToHead()
77 fHead->fPrev = entry; in attachToHead()
79 fTail = entry; in attachToHead()
81 fHead = entry; in attachToHead()
87 Entry* entry = fHead; in find() local
88 while (entry) { in find()
89 if (entry->equals(buffer, size)) { in find()
91 *bm = entry->fBitmap; in find()
94 this->release(entry); in find()
95 this->attachToHead(entry); in find()
98 entry = entry->fNext; in find()
112 Entry* entry = new Entry(buffer, len, bm); in add() local
113 this->attachToHead(entry); in add()
134 Entry* entry = fHead; in validate() local
136 while (entry) { in validate()
138 entry = entry->fNext; in validate()
142 entry = fTail; in validate()
143 while (entry) { in validate()
145 entry = entry->fPrev; in validate()