Lines Matching refs:getResourceBytes
335 SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes()); in Mock()
364 d->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
376 cache->getResourceBytes()); in test_no_key()
382 cache->getResourceBytes()); in test_no_key()
387 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_no_key()
392 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_no_key()
433 d->gpuMemorySize() == cache->getResourceBytes()); in test_purge_unlocked()
448 d->gpuMemorySize() == cache->getResourceBytes()); in test_purge_unlocked()
456 cache->getResourceBytes()); in test_purge_unlocked()
463 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_unlocked()
480 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_purge_command_buffer_usage()
499 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_purge_command_buffer_usage()
511 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_purge_command_buffer_usage()
518 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_purge_command_buffer_usage()
524 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_purge_command_buffer_usage()
531 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_command_buffer_usage()
574 cache->getResourceBytes()); in test_budgeting()
587 cache->getResourceBytes()); in test_budgeting()
601 cache->getResourceBytes()); in test_budgeting()
627 cache->getResourceBytes()); in test_budgeting()
638 cache->getResourceBytes()); in test_budgeting()
647 REPORTER_ASSERT(reporter, unbudgeted->gpuMemorySize() == cache->getResourceBytes()); in test_budgeting()
654 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_budgeting()
679 REPORTER_ASSERT(reporter, 10 == cache->getResourceBytes()); in test_unbudgeted()
688 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
693 size_t large = 2 * cache->getResourceBytes(); in test_unbudgeted()
696 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
703 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
710 REPORTER_ASSERT(reporter, 21 + large == cache->getResourceBytes()); in test_unbudgeted()
717 REPORTER_ASSERT(reporter, 21 == cache->getResourceBytes()); in test_unbudgeted()
724 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted()
751 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
759 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
778 REPORTER_ASSERT(reporter, size == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
790 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_unbudgeted_to_scratch()
824 cache->getResourceBytes()); in test_duplicate_scratch_key()
983 REPORTER_ASSERT(reporter, a->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
994 REPORTER_ASSERT(reporter, a->gpuMemorySize() + b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1000 REPORTER_ASSERT(reporter, b->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1011 REPORTER_ASSERT(reporter, b->gpuMemorySize() + c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1016 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1022 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1028 REPORTER_ASSERT(reporter, c->gpuMemorySize() == cache->getResourceBytes()); in test_duplicate_unique_key()
1036 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_duplicate_unique_key()
1118 REPORTER_ASSERT(reporter, 0 == cache->getResourceBytes()); in test_purge_invalidated()