diff options
| author | 2014-12-11 01:25:54 +0000 | |
|---|---|---|
| committer | 2014-12-11 01:25:54 +0000 | |
| commit | d67bb5015f716c094beff02b2c5e77c9bb7d11a0 (patch) | |
| tree | 4f23359e87a1bb079bd499f922d763e45c7a8752 /libs/hwui/TextureCache.h | |
| parent | 934d8d85be221b86cb5097625c0f48391b3a71b2 (diff) | |
| parent | e4a6ed9d6d8721c9fad018b0d43dfe7daf4b24e7 (diff) | |
am eb2dcc79: Merge "Don\'t preload textures for AssetAtlas" into lmp-mr1-dev
automerge: e4a6ed9
* commit 'e4a6ed9d6d8721c9fad018b0d43dfe7daf4b24e7':
Don't preload textures for AssetAtlas
Diffstat (limited to 'libs/hwui/TextureCache.h')
| -rw-r--r-- | libs/hwui/TextureCache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h index 3e94d1f4781b..cf8d1349dc50 100644 --- a/libs/hwui/TextureCache.h +++ b/libs/hwui/TextureCache.h @@ -44,6 +44,8 @@ namespace uirenderer { // Classes /////////////////////////////////////////////////////////////////////////////// +class AssetAtlas; + /** * A simple LRU texture cache. The cache has a maximum size expressed in bytes. * Any texture added to the cache causing the cache to grow beyond the maximum @@ -123,6 +125,8 @@ public: */ void setFlushRate(float flushRate); + void setAssetAtlas(AssetAtlas* assetAtlas); + private: bool canMakeTextureFromBitmap(const SkBitmap* bitmap); @@ -155,6 +159,8 @@ private: Vector<uint32_t> mGarbage; mutable Mutex mLock; + + AssetAtlas* mAssetAtlas; }; // class TextureCache }; // namespace uirenderer |