• Home
  • Raw
  • Download

Lines Matching refs:fAllocator

65             : fAllocator(policy,
103 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in reserve()
107 fAllocator->template reserve<alignof(T)>( in reserve()
118 GrBlockAllocator::Block* block = fAllocator->currentBlock(); in pop_back()
125 fAllocator->releaseBlock(block); in pop_back()
132 fAllocator->setMetadata(fAllocator->metadata() - 1); in pop_back()
146 fAllocator->reset(); in reset()
156 for (const auto* b :fAllocator->blocks()) { in count()
162 SkASSERT(count == fAllocator->metadata()); in count()
164 return fAllocator->metadata(); in count()
178 SkASSERT(this->count() > 0 && fAllocator->headBlock()->metadata() > 0); in front()
179 return GetItem(fAllocator->headBlock(), First(fAllocator->headBlock())); in front()
182 SkASSERT(this->count() > 0 && fAllocator->headBlock()->metadata() > 0); in front()
183 return GetItem(fAllocator->headBlock(), First(fAllocator->headBlock())); in front()
190 SkASSERT(this->count() > 0 && fAllocator->currentBlock()->metadata() > 0); in back()
191 return GetItem(fAllocator->currentBlock(), Last(fAllocator->currentBlock())); in back()
194 SkASSERT(this->count() > 0 && fAllocator->currentBlock()->metadata() > 0); in back()
195 return GetItem(fAllocator->currentBlock(), Last(fAllocator->currentBlock())); in back()
206 for (auto* b : fAllocator->blocks()) { in item()
255 auto br = fAllocator->template allocate<alignof(T)>(sizeof(T)); in pushItem()
257 br.fAlignedOffset == First(fAllocator->currentBlock())); in pushItem()
259 fAllocator->setMetadata(fAllocator->metadata() + 1); in pushItem()
268 GrSBlockAllocator<StartingSize> fAllocator; variable
281 Iter items() { return Iter(fAllocator.allocator()); } in items()
282 CIter items() const { return CIter(fAllocator.allocator()); } in items()
285 RIter ritems() { return RIter(fAllocator.allocator()); } in ritems()
286 CRIter ritems() const { return CRIter(fAllocator.allocator()); } in ritems()
290 const GrBlockAllocator* allocator() const { return fAllocator.allocator(); } in allocator()
309 GrBlockAllocator::Block* headBlock = other.fAllocator->headBlock(); in concat()
315 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in concat()
320 fAllocator->template reserve<alignof(T)>((headItemCount - avail) * sizeof(T), in concat()
336 copy(headBlock, headStart, fAllocator.allocator(), std::min(headItemCount, avail)); in concat()
341 fAllocator.allocator(), headItemCount - avail); in concat()
343 fAllocator->setMetadata(fAllocator->metadata() + headItemCount); in concat()
355 other.fAllocator->releaseBlock(headBlock); in concat()
359 SkASSERT(other.fAllocator->headBlock()->metadata() == 0 && in concat()
360 fAllocator->metadata() == oldCount + headItemCount); in concat()
361 fAllocator->stealHeapBlocks(other.fAllocator.allocator()); in concat()
362 fAllocator->setMetadata(fAllocator->metadata() + in concat()
363 (other.fAllocator->metadata() - headItemCount)); in concat()
364 other.fAllocator->setMetadata(0); in concat()