Lines Matching defs:strike
14 void GrFontCache::detachStrikeFromList(GrTextStrike* strike) {
15 if (strike->fPrev) {
16 SkASSERT(fHead != strike);
17 strike->fPrev->fNext = strike->fNext;
19 SkASSERT(fHead == strike);
20 fHead = strike->fNext;
23 if (strike->fNext) {
24 SkASSERT(fTail != strike);
25 strike->fNext->fPrev = strike->fPrev;
27 SkASSERT(fTail == strike);
28 fTail = strike->fPrev;
35 GrTextStrike* strike = fCache.find(*(scaler->getKey()));
36 if (NULL == strike) {
37 strike = this->generateStrike(scaler);
38 } else if (strike->fPrev) {
39 // Need to put the strike at the head of its dllist, since that is how
41 this->detachStrikeFromList(strike);
43 fHead->fPrev = strike;
44 strike->fNext = fHead;
45 strike->fPrev = NULL;
46 fHead = strike;
48 strike->fUseDistanceField = useDistanceField;
50 return strike;