Lines Matching refs:GrGpuResource
129 GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey, uint32_t flags = 0);
141 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource()
142 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource()
192 void insertResource(GrGpuResource*);
193 void removeResource(GrGpuResource*);
194 void notifyCntReachedZero(GrGpuResource*, uint32_t flags);
195 void didChangeGpuMemorySize(const GrGpuResource*, size_t oldSize);
196 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&);
197 void removeUniqueKey(GrGpuResource*);
198 void willRemoveScratchKey(const GrGpuResource*);
199 void didChangeBudgetStatus(GrGpuResource*);
200 void refAndMakeResourceMRU(GrGpuResource*);
205 void addToNonpurgeableArray(GrGpuResource*);
206 void removeFromNonpurgeableArray(GrGpuResource*);
212 bool isInCache(const GrGpuResource* r) const;
223 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey()
229 typedef SkTMultiMap<GrGpuResource, GrScratchKey, ScratchMapTraits> ScratchMap;
232 static const GrUniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
236 typedef SkTDynamicHash<GrGpuResource, GrUniqueKey, UniqueHashTraits> UniqueHash;
238 static bool CompareTimestamp(GrGpuResource* const& a, GrGpuResource* const& b) { in CompareTimestamp()
242 static int* AccessResourceIndex(GrGpuResource* const& res) { in AccessResourceIndex()
247 typedef SkTDPQueue<GrGpuResource*, CompareTimestamp, AccessResourceIndex> PurgeableQueue;
248 typedef SkTDArray<GrGpuResource*> ResourceArray;
294 SkDEBUGCODE(GrGpuResource* fNewlyPurgeableResourceForValidation;)
306 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
311 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
331 void notifyCntReachedZero(GrGpuResource* resource, uint32_t flags) { in notifyCntReachedZero()
338 void didChangeGpuMemorySize(const GrGpuResource* resource, size_t oldSize) { in didChangeGpuMemorySize()
345 void changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
352 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
357 void willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
364 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
372 friend class GrGpuResource; // To access all the proxy inline methods. variable