summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.h
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-08-24 17:20:20 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-08-24 17:20:20 -0700
commita84e02ce3cc392ccf23bbe89cdfbef650047ffe7 (patch)
tree6ddb05a329a031522ccd45c477d11556dfdb5ee1 /libs/hwui/PathCache.h
parent17b4d9ea826609f26a73077975c2399f91b5ca36 (diff)
parentfb8b763f762ae21923c58d64caa729b012f40e05 (diff)
Merge "Use only one GL context per process, share chaches."
Diffstat (limited to 'libs/hwui/PathCache.h')
-rw-r--r--libs/hwui/PathCache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h
index d09789f03763..522e5e0f65ad 100644
--- a/libs/hwui/PathCache.h
+++ b/libs/hwui/PathCache.h
@@ -95,6 +95,7 @@ struct PathTexture: public Texture {
*/
class PathCache: public OnEntryRemoved<PathCacheEntry, PathTexture*> {
public:
+ PathCache();
PathCache(uint32_t maxByteSize);
~PathCache();
@@ -135,6 +136,8 @@ private:
PathTexture* addTexture(const PathCacheEntry& entry, const SkPath *path, const SkPaint* paint);
+ void init();
+
GenerationCache<PathCacheEntry, PathTexture*> mCache;
uint32_t mSize;