Lines Matching refs:entry
46 Entry* entry = fHead; in ~SkGradientBitmapCache() local
47 while (entry) { in ~SkGradientBitmapCache()
48 Entry* next = entry->fNext; in ~SkGradientBitmapCache()
49 delete entry; in ~SkGradientBitmapCache()
50 entry = next; in ~SkGradientBitmapCache()
54 SkGradientBitmapCache::Entry* SkGradientBitmapCache::detach(Entry* entry) const { in detach()
55 if (entry->fPrev) { in detach()
56 SkASSERT(fHead != entry); in detach()
57 entry->fPrev->fNext = entry->fNext; in detach()
59 SkASSERT(fHead == entry); in detach()
60 fHead = entry->fNext; in detach()
62 if (entry->fNext) { in detach()
63 SkASSERT(fTail != entry); in detach()
64 entry->fNext->fPrev = entry->fPrev; in detach()
66 SkASSERT(fTail == entry); in detach()
67 fTail = entry->fPrev; in detach()
69 return entry; in detach()
72 void SkGradientBitmapCache::attachToHead(Entry* entry) const { in attachToHead()
73 entry->fPrev = nullptr; in attachToHead()
74 entry->fNext = fHead; in attachToHead()
76 fHead->fPrev = entry; in attachToHead()
78 fTail = entry; in attachToHead()
80 fHead = entry; in attachToHead()
86 Entry* entry = fHead; in find() local
87 while (entry) { in find()
88 if (entry->equals(buffer, size)) { in find()
90 *bm = entry->fBitmap; in find()
93 this->detach(entry); in find()
94 this->attachToHead(entry); in find()
97 entry = entry->fNext; in find()
111 Entry* entry = new Entry(buffer, len, bm); in add() local
112 this->attachToHead(entry); in add()
133 Entry* entry = fHead; in validate() local
135 while (entry) { in validate()
137 entry = entry->fNext; in validate()
141 entry = fTail; in validate()
142 while (entry) { in validate()
144 entry = entry->fPrev; in validate()