Lines Matching refs:stats
119 GrResourceCache::Stats stats;
148 resourceCache->getStats(&stats);
155 REPORTER_ASSERT(reporter, 1 == stats.fTotal);
161 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
177 resourceCache->getStats(&stats);
178 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
180 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
181 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
216 resourceCache->getStats(&stats);
217 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
219 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);
227 resourceCache->getStats(&stats);
228 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
230 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
231 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
283 resourceCache->getStats(&stats);
284 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
286 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
287 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
304 resourceCache->getStats(&stats);
305 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
306 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);
313 resourceCache->getStats(&stats);
314 REPORTER_ASSERT(reporter, 0 == stats.fTotal);
337 resourceCache->getStats(&stats);
338 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
339 REPORTER_ASSERT(reporter, 2 == stats.fNumNonPurgeable);
358 resourceCache->getStats(&stats);
359 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
360 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
361 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
367 resourceCache->getStats(&stats);
368 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
369 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);