Lines Matching defs:reporter

157 static void overlap_test(skiatest::Reporter* reporter, GrDirectContext* dContext,
167 REPORTER_ASSERT(reporter, alloc.planAssignment());
168 REPORTER_ASSERT(reporter, alloc.makeBudgetHeadroom());
169 REPORTER_ASSERT(reporter, alloc.assign());
171 REPORTER_ASSERT(reporter, p1->peekSurface());
172 REPORTER_ASSERT(reporter, p2->peekSurface());
174 REPORTER_ASSERT(reporter, expectedResult == doTheBackingStoresMatch);
179 static void non_overlap_test(skiatest::Reporter* reporter, GrDirectContext* dContext,
194 REPORTER_ASSERT(reporter, alloc.planAssignment());
195 REPORTER_ASSERT(reporter, alloc.makeBudgetHeadroom());
196 REPORTER_ASSERT(reporter, alloc.assign());
198 REPORTER_ASSERT(reporter, p1->peekSurface());
199 REPORTER_ASSERT(reporter, p2->peekSurface());
201 REPORTER_ASSERT(reporter, expectedResult == doTheBackingStoresMatch);
204 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceAllocatorTest, reporter, ctxInfo) {
236 reporter->push(SkStringPrintf("case %d", SkToInt(i)));
237 overlap_test(reporter, dContext, std::move(p1), std::move(p2), test.fExpectation);
238 reporter->pop();
310 reporter->push(SkStringPrintf("case %d", SkToInt(i)));
311 non_overlap_test(reporter, dContext, std::move(p1), std::move(p2),
313 reporter->pop();
329 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceAllocatorStressTest, reporter, ctxInfo) {
361 static void memory_budget_test(skiatest::Reporter* reporter,
375 REPORTER_ASSERT(reporter, proxy->peekSurface());
380 REPORTER_ASSERT(reporter, expectedPurgeableBytes == cache->getPurgeableBytes(),
389 REPORTER_ASSERT(reporter, proxy->peekSurface());
395 REPORTER_ASSERT(reporter, expectedUnpurgeableBytes == unpurgeableBytes,
407 REPORTER_ASSERT(reporter, alloc.planAssignment());
408 REPORTER_ASSERT(reporter, alloc.makeBudgetHeadroom() == test.fShouldFit);
411 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceAllocatorMemoryBudgetTest, reporter, ctxInfo) {
497 reporter->push(SkString(test.fName));
498 memory_budget_test(reporter, dContext, test);
499 reporter->pop();