Lines Matching refs:SkASSERT

110     SkASSERT(fNumUnrefs > 0);
127 SkASSERT(owningContextID.isValid());
128 SkASSERT(familyID != SK_InvalidUniqueID);
628 SkASSERT(resource);
629 SkASSERT(!this->isInCache(resource));
630 SkASSERT(!resource->wasDestroyed());
631 SkASSERT(!resource->resourcePriv().isPurgeable());
676 SkASSERT(!resource->cacheAccess().isUsableAsScratch());
699 SkASSERT(this->isInCache(resource));
748 SkASSERT(!back->wasDestroyed());
754 SkASSERT(!top->wasDestroyed());
760 SkASSERT(!fScratchMap.count());
761 SkASSERT(!fUniqueHash.count());
762 SkASSERT(!fCount);
763 SkASSERT(!this->getResourceCount());
764 SkASSERT(!fBytes);
765 SkASSERT(!fBudgetedCount);
766 SkASSERT(!fBudgetedBytes);
767 SkASSERT(!fPurgeableBytes);
768 SkASSERT(!fTexturesAwaitingUnref.count());
782 SkASSERT(fProxyProvider); // better have called setProxyProvider
783 SkASSERT(fThreadSafeCache); // better have called setThreadSafeCache too
791 SkASSERT(!back->wasDestroyed());
797 SkASSERT(!top->wasDestroyed());
801 SkASSERT(!fScratchMap.count());
802 SkASSERT(!fUniqueHash.count());
803 SkASSERT(!fCount);
804 SkASSERT(!this->getResourceCount());
805 SkASSERT(!fBytes);
806 SkASSERT(!fBudgetedCount);
807 SkASSERT(!fBudgetedBytes);
808 SkASSERT(!fPurgeableBytes);
809 SkASSERT(!fTexturesAwaitingUnref.count());
815 SkASSERT(fProxyProvider); // better have called setProxyProvider
840 SkASSERT(!resource->wasDestroyed());
918 SkASSERT(resource);
919 SkASSERT(resource->getContext()->priv().getResourceCache() == this);
940 SkASSERT(scratchKey.isValid());
957 SkASSERT(resource->resourcePriv().getScratchKey().isValid());
968 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey()));
979 SkASSERT(!resource->resourcePriv().isPurgeable());
985 SkASSERT(resource);
986 SkASSERT(this->isInCache(resource));
1000 SkASSERT(nullptr == fUniqueHash.find(newKey));
1004 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey()));
1006 SkASSERT(nullptr == fUniqueHash.find(resource->getUniqueKey()));
1027 SkASSERT(resource);
1028 SkASSERT(this->isInCache(resource));
1043 SkASSERT(fNumBudgetedResourcesFlushWillMakePurgeable > 0);
1055 SkASSERT(resource);
1056 SkASSERT(!resource->wasDestroyed());
1057 SkASSERT(this->isInCache(resource));
1060 SkASSERT(fNonpurgeableResources[*resource->cacheAccess().accessCacheIndex()] == resource);
1134 SkASSERT(this->getResourceCount() < beforeCount);
1140 SkASSERT(resource);
1141 SkASSERT(this->isInCache(resource));
1165 SkASSERT(resource->resourcePriv().budgetedType() != GrBudgetedType::kUnbudgetedCacheable);
1177 SkASSERT(wasPurgeable == resource->resourcePriv().isPurgeable());
1221 SkASSERT(fProxyProvider);
1226 SkASSERT(!fThreadSafeCache->has(invalidKeyMsgs[i].key()));
1231 SkASSERT(!this->findAndRefUniqueResource(invalidKeyMsgs[i].key()));
1245 SkASSERT(resource->resourcePriv().isPurgeable());
1260 SkASSERT(resource->resourcePriv().isPurgeable());
1298 SkASSERT(resource->resourcePriv().isPurgeable());
1326 SkASSERT(resource->resourcePriv().isPurgeable());
1361 SkASSERT(resource->resourcePriv().isPurgeable());
1393 SkASSERT(resource->resourcePriv().isPurgeable());
1413 SkASSERT(resource->resourcePriv().isPurgeable());
1441 SkASSERT(resource->resourcePriv().isPurgeable());
1476 SkASSERT(resource->resourcePriv().isPurgeable());
1544 SkASSERT(resource->resourcePriv().isPurgeable());
1594 SkASSERT(msgs[i].fIntendedRecipient == fOwningContextID);
1600 SkASSERT(info);
1619 SkASSERT(fNonpurgeableResources[*index] == resource);
1654 SkASSERT(tsP != tsNP);
1679 SkASSERT(count == this->getResourceCount());
1682 SkASSERT(fTimestamp == SkToU32(count));
1803 SkASSERT(!uniqueKey.isValid());
1804 SkASSERT(GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType());
1805 SkASSERT(!resource->cacheAccess().hasRef());
1807 SkASSERT(fScratchMap->countForKey(scratchKey));
1808 SkASSERT(!resource->resourcePriv().refsWrappedObjects());
1810 SkASSERT(GrBudgetedType::kBudgeted != resource->resourcePriv().budgetedType() ||
1812 SkASSERT(!resource->resourcePriv().refsWrappedObjects());
1813 SkASSERT(!fScratchMap->has(resource, scratchKey));
1817 SkASSERT(fUniqueHash->find(uniqueKey) == resource);
1818 SkASSERT(GrBudgetedType::kBudgeted == resource->resourcePriv().budgetedType() ||
1832 SkASSERT(resource.cacheAccess().isUsableAsScratch());
1835 SkASSERT(count == fScratchMap.count());
1843 SkASSERT(!fNonpurgeableResources[i]->resourcePriv().isPurgeable() ||
1845 SkASSERT(*fNonpurgeableResources[i]->cacheAccess().accessCacheIndex() == i);
1846 SkASSERT(!fNonpurgeableResources[i]->wasDestroyed());
1855 SkASSERT(fPurgeableQueue.at(i)->resourcePriv().isPurgeable());
1856 SkASSERT(*fPurgeableQueue.at(i)->cacheAccess().accessCacheIndex() == i);
1857 SkASSERT(!fPurgeableQueue.at(i)->wasDestroyed());
1862 SkASSERT(fCount == this->getResourceCount());
1863 SkASSERT(fBudgetedCount <= fCount);
1864 SkASSERT(fBudgetedBytes <= fBytes);
1865 SkASSERT(stats.fBytes == fBytes);
1866 SkASSERT(fNumBudgetedResourcesFlushWillMakePurgeable ==
1868 SkASSERT(stats.fBudgetedBytes == fBudgetedBytes);
1869 SkASSERT(stats.fBudgetedCount == fBudgetedCount);
1870 SkASSERT(purgeableBytes == fPurgeableBytes);
1872 SkASSERT(fBudgetedHighWaterCount <= fHighWaterCount);
1873 SkASSERT(fBudgetedHighWaterBytes <= fHighWaterBytes);
1874 SkASSERT(fBytes <= fHighWaterBytes);
1875 SkASSERT(fCount <= fHighWaterCount);
1876 SkASSERT(fBudgetedBytes <= fBudgetedHighWaterBytes);
1877 SkASSERT(fBudgetedCount <= fBudgetedHighWaterCount);
1879 SkASSERT(stats.fContent == fUniqueHash.count());
1880 SkASSERT(stats.fScratch == fScratchMap.count());
1885 // SkASSERT(!overBudget || locked == count || fPurging);