Home | History | Annotate | Download | only in hwui

Lines Matching refs:mCache

33     for (size_t i = 0; i < mCache->size(); ++i) {
34 ResourceReference* ref = mCache->valueAt(i);
35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
36 i, mCache->keyAt(i), mCache->valueAt(i));
37 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d",
44 mCache = new KeyedVector<const void*, ResourceReference*>();
49 delete mCache;
70 ssize_t index = mCache->indexOfKey(resource);
71 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr;
72 if (ref == nullptr || mCache->size() == 0) {
74 mCache->add(resource, ref);
89 ssize_t index = mCache->indexOfKey(resource);
90 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr;
111 ssize_t index = mCache->indexOfKey(resource);
112 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : nullptr;
150 mCache->removeItem(resource);