Lines Matching refs:allocator
24 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt,
29 static void check_allocator(GrTAllocator<C>* allocator, int cnt, int popCnt, in check_allocator() argument
31 SkASSERT(allocator); in check_allocator()
32 SkASSERT(allocator->empty()); in check_allocator()
36 allocator->push_back(C(i)); in check_allocator()
38 allocator->push_back() = C(i); in check_allocator()
41 check_allocator_helper(allocator, cnt, popCnt, reporter); in check_allocator()
42 allocator->reset(); in check_allocator()
43 check_allocator_helper(allocator, 0, 0, reporter); in check_allocator()
48 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt, in check_allocator_helper() argument
50 REPORTER_ASSERT(reporter, (0 == cnt) == allocator->empty()); in check_allocator_helper()
51 REPORTER_ASSERT(reporter, cnt == allocator->count()); in check_allocator_helper()
54 GrTAllocator<C>::Iter iter(allocator); in check_allocator_helper()
60 REPORTER_ASSERT(reporter, cnt-1 == allocator->back().fID); in check_allocator_helper()
65 allocator->pop_back(); in check_allocator_helper()
67 check_allocator_helper(allocator, cnt - popCnt, 0, reporter); in check_allocator_helper()