Lines Matching refs:fTextureCache
94 fTextureCache = NULL;
117 fTextureCache = SkNEW_ARGS(GrResourceCache,
120 fTextureCache->setOverbudgetCallback(OverbudgetCB, this);
151 delete fTextureCache;
152 fTextureCache = NULL;
194 fTextureCache->purgeAllUnlocked();
212 fTextureCache->purgeAllUnlocked();
220 return fTextureCache->getCachedResourceBytes();
229 GrResource* resource = fTextureCache->find(resourceKey);
238 return fTextureCache->hasKey(resourceKey);
247 fTextureCache->addResource(resourceKey, sb);
255 GrResource* resource = fTextureCache->find(resourceKey);
390 fTextureCache->purgeAsNeeded(1, texture->sizeInBytes());
391 fTextureCache->addResource(resourceKey, texture);
429 return create_scratch_texture(fGpu, fTextureCache, inDesc);
448 resource = fTextureCache->find(key, GrResourceCache::kHide_OwnershipFlag);
473 resource = create_scratch_texture(fGpu, fTextureCache, desc);
496 fTextureCache->makeNonExclusive(texture->getCacheEntry());
501 fTextureCache->makeNonExclusive(texture->getCacheEntry());
502 fTextureCache->deleteResource(texture->getCacheEntry());
522 fTextureCache->makeNonExclusive(texture->getCacheEntry());
528 fTextureCache->makeNonExclusive(texture->getCacheEntry());
529 fTextureCache->deleteResource(texture->getCacheEntry());
544 if (NULL != fTextureCache) {
545 fTextureCache->purgeAsNeeded();
570 fTextureCache->getLimits(maxTextures, maxTextureBytes);
574 fTextureCache->setLimits(maxTextures, maxTextureBytes);
1780 // TODO: now we add to fTextureCache. This should change to fResourceCache.
1782 GrPath* path = static_cast<GrPath*>(fTextureCache->find(resourceKey));
1787 fTextureCache->purgeAsNeeded(1, path->sizeInBytes());
1788 fTextureCache->addResource(resourceKey, path);
1796 fTextureCache->printStats();