Lines Matching refs:index
1609 int index = fNonpurgeableResources.count();
1611 *resource->cacheAccess().accessCacheIndex() = index;
1615 int* index = resource->cacheAccess().accessCacheIndex();
1616 // Fill the hole we will create in the array with the tail object, adjust its index, and
1619 SkASSERT(fNonpurgeableResources[*index] == resource);
1620 fNonpurgeableResources[*index] = tail;
1621 *tail->cacheAccess().accessCacheIndex() = *index;
1623 SkDEBUGCODE(*index = -1);
1658 // Correct the index in the nonpurgeable array stored on the resource post-sort.
1890 int index = *resource->cacheAccess().accessCacheIndex();
1891 if (index < 0) {
1894 if (index < fPurgeableQueue.count() && fPurgeableQueue.at(index) == resource) {
1897 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index] == resource) {
1900 SkDEBUGFAIL("Resource index should be -1 or the resource should be in the cache.");
1905 int index = *resource->cacheAccess().accessCacheIndex();
1906 if (index < 0) {
1909 if (index < fPurgeableQueue.count() && fPurgeableQueue.at(index) == resource) {
1912 SkDEBUGFAIL("OHOS Resource index should be -1 or the resource should be in the cache.");
1917 int index = *resource->cacheAccess().accessCacheIndex();
1918 if (index < 0) {
1921 if (index < fNonpurgeableResources.count() && fNonpurgeableResources[index] == resource) {
1924 SkDEBUGFAIL("OHOS Resource index should be -1 or the resource should be in the cache.");