diff options
| author | Romain Guy <romainguy@google.com> | 2010-08-23 21:05:08 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-08-24 17:18:14 -0700 |
| commit | fb8b763f762ae21923c58d64caa729b012f40e05 (patch) | |
| tree | 013792d41f32bff4dd35e6d53eebac711c513729 /libs/hwui/TextureCache.h | |
| parent | a1f1174b396cda7bdff469a2e974a737600c5eb0 (diff) | |
| download | frameworks_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/TextureCache.h')
| -rw-r--r-- | libs/hwui/TextureCache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h index 452716c..b5e4c7c 100644 --- a/libs/hwui/TextureCache.h +++ b/libs/hwui/TextureCache.h @@ -32,6 +32,7 @@ namespace uirenderer { */ class TextureCache: public OnEntryRemoved<SkBitmap*, Texture*> { public: + TextureCache(); TextureCache(uint32_t maxByteSize); ~TextureCache(); @@ -78,6 +79,8 @@ private: */ void generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate = false); + void init(); + GenerationCache<SkBitmap*, Texture*> mCache; uint32_t mSize; |
