diff options
author | 2012-08-28 12:34:17 +0000 | |
---|---|---|
committer | 2012-08-28 12:34:17 +0000 | |
commit | a292112154f803feb9f5cc002bbfab559f7cb633 (patch) | |
tree | ad0e10be899398b34764f8f7c0d63df4172a483d /src/gpu/GrResourceCache.h | |
parent | 97af1a64ae6bdddd346d8babfd9f188279dd6644 (diff) |
Remove SkGpuDevice::fTexture, use new pixel ref class name
Review URL: https://codereview.appspot.com/6474068/
git-svn-id: http://skia.googlecode.com/svn/trunk@5307 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrResourceCache.h')
-rw-r--r-- | src/gpu/GrResourceCache.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 162e1ef04a..5741e47dc9 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -264,12 +264,15 @@ public: void makeNonExclusive(GrResourceEntry* entry); /** - * When done with an entry, call unlock(entry) on it, which returns it to - * a purgable state. + * When done with an entry, call unlock(entry) on it, which returns it to + * a purgable state. */ void unlock(GrResourceEntry*); - void removeAll(); + /** + * Removes every resource in the cache that isn't locked. + */ + void purgeAllUnlocked(); #if GR_DEBUG void validate() const; @@ -289,11 +292,12 @@ private: GrTHashTable<GrResourceEntry, Key, 8> fCache; // manage the dlink list - SkTDLinkedList<GrResourceEntry> fList; + typedef SkTDLinkedList<GrResourceEntry> EntryList; + EntryList fList; #if GR_DEBUG // These objects cannot be returned by a search - SkTDLinkedList<GrResourceEntry> fExclusiveList; + EntryList fExclusiveList; #endif // our budget, used in purgeAsNeeded() |