Chromium Code Reviews| Index: src/core/SkResourceCache.h |
| diff --git a/src/core/SkResourceCache.h b/src/core/SkResourceCache.h |
| index f2fd8fc047443b64e0688c28cf3804ec78fbfbed..f90f53cf1ac387e3592efc06c93a575791b404a2 100644 |
| --- a/src/core/SkResourceCache.h |
| +++ b/src/core/SkResourceCache.h |
| @@ -98,6 +98,7 @@ public: |
| static const Rec* AddAndLock(Rec*); |
| static void Add(Rec*); |
| static void Unlock(ID); |
| + static void Remove(ID); |
| static size_t GetTotalBytesUsed(); |
| static size_t GetTotalByteLimit(); |
| @@ -140,6 +141,7 @@ public: |
| const Rec* findAndLock(const Key& key); |
| const Rec* addAndLock(Rec*); |
| void add(Rec*); |
| + void remove(ID); |
|
reed1
2014/09/11 13:40:31
(Rec*)
|
| /** |
| * Given a non-null ID ptr returned by either findAndLock or addAndLock, |