Lines Matching refs:GrResourceAllocator
80 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in overlap_test()
82 alloc.addInterval(p1.get(), 0, 4, GrResourceAllocator::ActualUse::kYes); in overlap_test()
84 alloc.addInterval(p2.get(), 1, 2, GrResourceAllocator::ActualUse::kYes); in overlap_test()
91 GrResourceAllocator::AssignError error; in overlap_test()
93 REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); in overlap_test()
107 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in non_overlap_test()
116 alloc.addInterval(p1.get(), 0, 2, GrResourceAllocator::ActualUse::kYes); in non_overlap_test()
117 alloc.addInterval(p2.get(), 3, 5, GrResourceAllocator::ActualUse::kYes); in non_overlap_test()
123 GrResourceAllocator::AssignError error; in non_overlap_test()
125 REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); in non_overlap_test()
326 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
327 alloc.addInterval(p0.get(), 0, 1, GrResourceAllocator::ActualUse::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
328 alloc.addInterval(p1.get(), 0, 1, GrResourceAllocator::ActualUse::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
329 alloc.addInterval(p2.get(), 0, 1, GrResourceAllocator::ActualUse::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
330 alloc.addInterval(p3.get(), 0, 1, GrResourceAllocator::ActualUse::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
337 GrResourceAllocator::AssignError error; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
374 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 2)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
376 alloc.addInterval(p1.get(), 0, 0, GrResourceAllocator::ActualUse::kYes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
378 alloc.addInterval(p2.get(), 1, 1, GrResourceAllocator::ActualUse::kYes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
382 alloc.addInterval(p3.get(), 2, 2, GrResourceAllocator::ActualUse::kYes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
384 alloc.addInterval(p4.get(), 3, 3, GrResourceAllocator::ActualUse::kYes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
389 GrResourceAllocator::AssignError error; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
394 REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
398 REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()