Lines Matching refs:getResourceBytes

276         SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes());  in Mock()
305 d->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
317 cache->getResourceBytes()); in test_no_key()
323 cache->getResourceBytes()); in test_no_key()
328 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
333 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_no_key()
375 cache->getResourceBytes()); in test_budgeting()
385 cache->getResourceBytes()); in test_budgeting()
394 unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
403 unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
411 cache->getResourceBytes()); in test_budgeting()
417 REPORTER_ASSERT(reporter, unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
423 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_budgeting()
446 REPORTER_ASSERT(reporter, 10 == cache->getResourceBytes()); in test_unbudgeted()
455 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
459 size_t large = 2 * cache->getResourceBytes(); in test_unbudgeted()
463 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
469 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
476 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
482 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
488 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted()
513 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
520 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
537 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
547 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
579 cache->getResourceBytes()); in test_duplicate_scratch_key()
739 REPORTER_ASSERT(reporter, a->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
751 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
757 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
769 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
774 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
780 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
786 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
794 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_duplicate_unique_key()
861 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_invalidated()
922 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
933 REPORTER_ASSERT(reporter, 250 == cache->getResourceBytes()); in test_resource_size_changed()
953 REPORTER_ASSERT(reporter, 200 == cache->getResourceBytes()); in test_resource_size_changed()
963 REPORTER_ASSERT(reporter, 201 == cache->getResourceBytes()); in test_resource_size_changed()
1146 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 2 * kResourceCnt); in test_large_resource_count()
1161 REPORTER_ASSERT(reporter, cache->getResourceBytes() == 0); in test_large_resource_count()