commit | 121e2242565d5f09ad83a2d33ecd2225838802c5 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Thu Jul 01 18:26:52 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Thu Jul 01 18:26:52 2010 -0700 |
tree | 9c87b01a24909f832e00e9448fc2feb8241e41d1 | |
parent | 37f447338e4633461253539e62c9b8eae04de3b3 [diff] |
Track the size in memory of the texture cache. The texture cache was previously checking the number of stored textures. This was not very useful as this could easily lead to an abuse of memory. The new cache instead tracks the total size occupied in RAM by the cached textures. When a new texture is generated, older textures are kicked out as needed. Change-Id: Ib27142f4a018d5bf84774c1fb6f45a67a85f20bc