• Home
  • Raw
  • Download

Lines Matching refs:GrGpuResource

131     GrGpuResource* findAndRefScratchResource(const GrScratchKey& scratchKey,
145 GrGpuResource* findAndRefUniqueResource(const GrUniqueKey& key) { in findAndRefUniqueResource()
146 GrGpuResource* resource = fUniqueHash.find(key); in findAndRefUniqueResource()
210 void update(GrGpuResource* resource) { in update()
246 void insertResource(GrGpuResource*);
247 void removeResource(GrGpuResource*);
248 void notifyCntReachedZero(GrGpuResource*, uint32_t flags);
249 void didChangeGpuMemorySize(const GrGpuResource*, size_t oldSize);
250 void changeUniqueKey(GrGpuResource*, const GrUniqueKey&);
251 void removeUniqueKey(GrGpuResource*);
252 void willRemoveScratchKey(const GrGpuResource*);
253 void didChangeBudgetStatus(GrGpuResource*);
254 void refAndMakeResourceMRU(GrGpuResource*);
259 void addToNonpurgeableArray(GrGpuResource*);
260 void removeFromNonpurgeableArray(GrGpuResource*);
270 bool isInCache(const GrGpuResource* r) const;
281 static const GrScratchKey& GetKey(const GrGpuResource& r) { in GetKey()
287 typedef SkTMultiMap<GrGpuResource, GrScratchKey, ScratchMapTraits> ScratchMap;
290 static const GrUniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
294 typedef SkTDynamicHash<GrGpuResource, GrUniqueKey, UniqueHashTraits> UniqueHash;
296 static bool CompareTimestamp(GrGpuResource* const& a, GrGpuResource* const& b) { in CompareTimestamp()
300 static int* AccessResourceIndex(GrGpuResource* const& res) { in AccessResourceIndex()
305 typedef SkTDPQueue<GrGpuResource*, CompareTimestamp, AccessResourceIndex> PurgeableQueue;
306 typedef SkTDArray<GrGpuResource*> ResourceArray;
352 SkDEBUGCODE(GrGpuResource* fNewlyPurgeableResourceForValidation;)
366 void insertResource(GrGpuResource* resource) { fCache->insertResource(resource); } in insertResource()
371 void removeResource(GrGpuResource* resource) { fCache->removeResource(resource); } in removeResource()
391 void notifyCntReachedZero(GrGpuResource* resource, uint32_t flags) { in notifyCntReachedZero()
398 void didChangeGpuMemorySize(const GrGpuResource* resource, size_t oldSize) { in didChangeGpuMemorySize()
405 void changeUniqueKey(GrGpuResource* resource, const GrUniqueKey& newKey) { in changeUniqueKey()
412 void removeUniqueKey(GrGpuResource* resource) { fCache->removeUniqueKey(resource); } in removeUniqueKey()
417 void willRemoveScratchKey(const GrGpuResource* resource) { in willRemoveScratchKey()
424 void didChangeBudgetStatus(GrGpuResource* resource) { fCache->didChangeBudgetStatus(resource); } in didChangeBudgetStatus()
432 friend class GrGpuResource; // To access all the proxy inline methods. variable