diff options
author | 2017-01-30 14:24:48 -0800 | |
---|---|---|
committer | 2017-01-30 15:13:07 -0800 | |
commit | 00783be809c1176fa9e904b76b3d56f268dcc4da (patch) | |
tree | 01eb1305e499d8dfa5ea9d973fd5b2a90c04d65f /libs/hwui/TextureCache.h | |
parent | df9a4f9a7c599ccd2348d429e6a6f0a5a415f780 (diff) |
Don't count hw bitmap's textures in TextureCache
Test: refactoring CL.
bug: 34751775
Change-Id: I0f7c8338817329a5c75cec4e8b944779587d7b7f
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r-- | libs/hwui/TextureCache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h index 68a548bdb1ff..a55b061818a3 100644 --- a/libs/hwui/TextureCache.h +++ b/libs/hwui/TextureCache.h @@ -125,6 +125,7 @@ private: bool canMakeTextureFromBitmap(Bitmap* bitmap); Texture* getCachedTexture(Bitmap* bitmap); + Texture* createTexture(Bitmap* bitmap); LruCache<uint32_t, Texture*> mCache; @@ -137,6 +138,7 @@ private: bool mDebugEnabled; std::vector<uint32_t> mGarbage; + std::unordered_map<uint32_t, std::unique_ptr<Texture>> mHardwareTextures; mutable Mutex mLock; }; // class TextureCache |