Lines Matching refs:GrBlockAllocator
16 using IndexFn = int (*)(const GrBlockAllocator::Block*);
17 using NextFn = int (*)(const GrBlockAllocator::Block*, int);
20 ItemFn<T, typename std::conditional<Const, const GrBlockAllocator::Block,
21 GrBlockAllocator::Block>::type> Resolve>
63 GrBlockAllocator::GrowthPolicy policy =
64 GrBlockAllocator::GrowthPolicy::kFixed)
66 GrBlockAllocator::BlockOverhead<alignof(T)>() + sizeof(T)*itemsPerBlock) {}
108 reserved * sizeof(T), GrBlockAllocator::kIgnoreExistingBytes_Flag); in reserve()
118 GrBlockAllocator::Block* block = fAllocator->currentBlock(); in pop_back()
232 GrBlockAllocator::Overhead<alignof(T)>() + StartingItems * sizeof(T);
234 static T& GetItem(GrBlockAllocator::Block* block, int index) { in GetItem()
237 static const T& GetItem(const GrBlockAllocator::Block* block, int index) { in GetItem()
240 static int First(const GrBlockAllocator::Block* b) { in First()
243 static int Last(const GrBlockAllocator::Block* b) { in Last()
246 static int Increment(const GrBlockAllocator::Block* b, int index) { in Increment()
249 static int Decrement(const GrBlockAllocator::Block* b, int index) { in Decrement()
290 const GrBlockAllocator* allocator() const { return fAllocator.allocator(); } in allocator()
309 GrBlockAllocator::Block* headBlock = other.fAllocator->headBlock(); in concat()
321 GrBlockAllocator::kIgnoreExistingBytes_Flag | in concat()
322 GrBlockAllocator::kIgnoreGrowthPolicy_Flag); in concat()
328 auto copy = [](GrBlockAllocator::Block* src, int start, GrBlockAllocator* dst, int n) { in concat()
379 ItemFn<T, typename std::conditional<Const, const GrBlockAllocator::Block,
380 GrBlockAllocator::Block>::type> Resolve>
382 using BlockIter = typename GrBlockAllocator::BlockIter<Forward, Const>;