diff options
| author | 2014-11-06 13:04:49 -0800 | |
|---|---|---|
| committer | 2014-11-06 13:04:49 -0800 | |
| commit | 088c514cb13f3b8f8683588c2f398f18df1547c9 (patch) | |
| tree | 798905e133994e16fc1b66a8e6aedeab0eb98872 /libs/hwui/ResourceCache.h | |
| parent | 1af72bff509bb2638c2d7a1309dbf3f03736e6fd (diff) | |
| parent | be70c7713df98d81e9e43af9e76e0e6d018a4339 (diff) | |
resolved conflicts for merge of be70c771 to master
Change-Id: I469905bef7361c18aab725778694567d1987c06d
Diffstat (limited to 'libs/hwui/ResourceCache.h')
| -rw-r--r-- | libs/hwui/ResourceCache.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/hwui/ResourceCache.h b/libs/hwui/ResourceCache.h index edd633161562..c6cd7bfd0bf2 100644 --- a/libs/hwui/ResourceCache.h +++ b/libs/hwui/ResourceCache.h @@ -23,6 +23,7 @@ #include <SkPath.h> #include <utils/KeyedVector.h> +#include <utils/Singleton.h> #include <androidfw/ResourceTypes.h> @@ -54,11 +55,14 @@ public: ResourceType resourceType; }; -class ANDROID_API ResourceCache { -public: +class ANDROID_API ResourceCache: public Singleton<ResourceCache> { ResourceCache(); ~ResourceCache(); + friend class Singleton<ResourceCache>; + +public: + /** * When using these two methods, make sure to only invoke the *Locked() * variants of increment/decrementRefcount(), recyle() and destructor() |