summaryrefslogtreecommitdiffstats
path: root/libs/hwui/GenerationCache.h
Commit message (Collapse)AuthorAgeFilesLines
* Simpler way to deal with the FBO multi-cache.Romain Guy2010-07-071-104/+14
| | | | | | | | This change removes the need for the SortedList and instead just add a generated id to each FBO stored in the cache. This is an artificial way to store several FBOs with the same dimensions. Change-Id: I9638364e9bdc0f2391261937a0c86096f20505bf
* Optimize FBO cache.Romain Guy2010-07-071-48/+153
| | | | | | | | | This change introduces a new generational cache called GenerationMultiCache that can store several values with the same key. This can be used to use multiple layers of the same size at the same time, without recreating them over and over again. Change-Id: I425466a20908b862c5f464a0f9e582ec18cbd7ac
* Add a layer (FBO) cache.Romain Guy2010-07-061-28/+32
| | | | | | | | | | | | | | The cache is used to draw layers so that a new texture does not have to be recreated every time a call to saveLayer() happens. The FBO cache used a KeyedVector, which is a bad idea. The cache should be able to store several FBOs of the same size (this happens a lot during scrolling with fading edges for instance.) This will be changed in a future CL. Change-Id: Ic316189e625f0dbcf0d273a71cc981a433d48726
* Remove extra leftover logs and use uint32_t instead of unsigned int.Romain Guy2010-07-021-4/+4
| | | | Change-Id: I944f82fe3255de38dc04048cc8bd861f578f01a7
* Track the size in memory of the texture cache.Romain Guy2010-07-011-3/+6
| | | | | | | | | 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
* Fix the build.Romain Guy2010-06-301-4/+4
| | | | Change-Id: I08bd6daf25351daca3ae552e1cfcfce85eefa73b
* Add hooks for drawBitmap().Romain Guy2010-06-301-0/+208
Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0 Add texture cache. Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7