Lines Matching refs:first
78 Block* first = fFrontBlock; in push_front() local
81 if (NULL == first->fBegin) { in push_front()
83 first->fEnd = first->fStop; in push_front()
84 begin = first->fStop - fElemSize; in push_front()
86 begin = first->fBegin - fElemSize; in push_front()
87 if (begin < first->start()) { // no more room in this chunk in push_front()
89 first = this->allocateBlock(fAllocCount); in push_front()
90 first->fNext = fFrontBlock; in push_front()
91 fFrontBlock->fPrev = first; in push_front()
92 fFrontBlock = first; in push_front()
97 first->fBegin = begin; in push_front()
155 Block* first = fFrontBlock; in pop_front() local
157 SkASSERT(first != NULL); in pop_front()
159 if (first->fBegin == NULL) { // we were marked empty from before in pop_front()
160 first = first->fNext; in pop_front()
161 first->fPrev = NULL; in pop_front()
163 fFrontBlock = first; in pop_front()
164 SkASSERT(first != NULL); // else we popped too far in pop_front()
167 char* begin = first->fBegin + fElemSize; in pop_front()
168 SkASSERT(begin <= first->fEnd); in pop_front()
171 first->fBegin = begin; in pop_front()
172 SkASSERT(NULL != first->fBegin); in pop_front()
173 fFront = first->fBegin; in pop_front()
175 first->fBegin = first->fEnd = NULL; // mark as empty in pop_front()
176 if (NULL == first->fNext) { in pop_front()
179 SkASSERT(NULL != first->fNext->fBegin); in pop_front()
180 fFront = first->fNext->fBegin; in pop_front()