summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-23 21:05:08 -0700
committerRomain Guy <romainguy@google.com>2010-08-24 17:18:14 -0700
commitfb8b763f762ae21923c58d64caa729b012f40e05 (patch)
tree013792d41f32bff4dd35e6d53eebac711c513729 /libs/hwui/PathCache.h
parenta1f1174b396cda7bdff469a2e974a737600c5eb0 (diff)
downloadframeworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.zip
frameworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.tar.gz
frameworks_base-fb8b763f762ae21923c58d64caa729b012f40e05.tar.bz2
Use only one GL context per process, share chaches.
Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
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 d09789f..522e5e0 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;