Lines Matching refs:resource
35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p", i, mCache->keyAt(i),
60 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) {
62 incrementRefcountLocked(resource, resourceType);
69 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) {
70 ssize_t index = mCache->indexOfKey(resource);
74 mCache->add(resource, ref);
79 void ResourceCache::decrementRefcount(void* resource) {
81 decrementRefcountLocked(resource);
88 void ResourceCache::decrementRefcountLocked(void* resource) {
89 ssize_t index = mCache->indexOfKey(resource);
97 deleteResourceReferenceLocked(resource, ref);
105 void ResourceCache::destructor(Res_png_9patch* resource) {
107 destructorLocked(resource);
110 void ResourceCache::destructorLocked(Res_png_9patch* resource) {
111 ssize_t index = mCache->indexOfKey(resource);
114 // If we're not tracking this resource, just delete it
116 Caches::getInstance().patchCache.removeDeferred(resource);
120 delete[](int8_t*) resource;
126 deleteResourceReferenceLocked(resource, ref);
134 void ResourceCache::deleteResourceReferenceLocked(const void* resource, ResourceReference* ref) {
139 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*)resource);
143 int8_t* patch = (int8_t*)resource;
149 mCache->removeItem(resource);