summaryrefslogtreecommitdiffstats
path: root/libs/hwui/LayerCache.h
Commit message (Collapse)AuthorAgeFilesLines
* Tweak layers caching for better performance in Launcher.Romain Guy2010-10-121-0/+2
| | | | Change-Id: Ia6e67699d98f69c8a93385b3ecbdd814c7b16921
* Better cache for layers, reduce memory usage and increase framerate.Romain Guy2010-10-081-17/+48
| | | | Change-Id: I5ff864a361db4791bd5ff6be716f7ce692ef572d
* Optimize saveLayer() when the clip flag is set.Romain Guy2010-10-051-1/+1
| | | This speeds up applications, especially Launcher.
* Correct implementation of saveLayer().Romain Guy2010-09-121-3/+1
| | | | Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
* Use only one GL context per process, share chaches.Romain Guy2010-08-241-0/+1
| | | | Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
* Draw n-patches using OpenGL.Romain Guy2010-07-081-1/+1
| | | | | | Currently only tested with title bars and buttons. Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6
* Create FBOs in LayerCache.Romain Guy2010-07-081-2/+32
| | | | | | | This moves a bit of code away from OpenGLRenderer and matches what happens with the TextureCache. Change-Id: I3c67f54f83d7240770daa015861c0e75a1dd8c42
* Simpler way to deal with the FBO multi-cache.Romain Guy2010-07-071-1/+2
| | | | | | | | 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-1/+1
| | | | | | | | | 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-0/+78
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