Lines Matching refs:getResourceBytes
342 SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes()); in Mock()
371 d->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
383 cache->getResourceBytes()); in test_no_key()
389 cache->getResourceBytes()); in test_no_key()
394 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
399 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_no_key()
440 cache->getResourceBytes()); in test_budgeting()
450 cache->getResourceBytes()); in test_budgeting()
459 unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
468 unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
476 cache->getResourceBytes()); in test_budgeting()
482 REPORTER_ASSERT(reporter, unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
488 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_budgeting()
511 REPORTER_ASSERT(reporter, 10 == cache->getResourceBytes()); in test_unbudgeted()
520 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
524 size_t large = 2 * cache->getResourceBytes(); in test_unbudgeted()
527 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
533 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
539 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
545 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
551 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted()
576 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
583 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
600 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
610 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
642 cache->getResourceBytes()); in test_duplicate_scratch_key()
802 REPORTER_ASSERT(reporter, a->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
814 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
820 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
832 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
837 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
843 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
849 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
857 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_duplicate_unique_key()
939 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_invalidated()
999 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
1010 REPORTER_ASSERT(reporter, 250 == cache->getResourceBytes()); in test_resource_size_changed()
1030 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
1040 REPORTER_ASSERT(reporter, 201 == cache->getResourceBytes()); in test_resource_size_changed()
1223 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 2 * kResourceCnt); in test_large_resource_count()
1238 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 0); in test_large_resource_count()