summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Layer.h
Commit message (Collapse)AuthorAgeFilesLines
* Optimize rect-shaped layers.Romain Guy2011-03-181-0/+5
| | | | | | | This brings back an optimization disabled in HC-MR1. This time the correct geometry is generated to avoid unnecessary blending. Change-Id: Id56404dc46bb84c75facc25c18488a690741b592
* Don't blend transparent pixels when rendering layers.Romain Guy2011-01-161-0/+16
| | | | | | | | With this change, the rendere keeps track of what regions are rendered into and generates a mesh that matches these regions exactly. The mesh is used to composite the layer on screen. Change-Id: I1f342576b9134fb29caff7fb8f4c1da179fe956d
* New layers API for Views.Romain Guy2011-01-061-0/+6
| | | | | | | | | This API can be used to back a view and its children with either a software layer (bitmap) or hardware layer (FBO). Layers have various usages, including color filtering and performance improvements during animations. Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
* Optimize FBO drawing with regions.Romain Guy2010-11-021-3/+11
| | | | | | | | | This optimization is currently disabled until Launcher is modified to take advantage of it. The optimization can be enabled by turning on RENDER_LAYERS_AS_REGIONS in the OpenGLRenderer.h file. Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
* Better cache for layers, reduce memory usage and increase framerate.Romain Guy2010-10-081-25/+26
| | | | Change-Id: I5ff864a361db4791bd5ff6be716f7ce692ef572d
* Optimize saveLayer() when the clip flag is set.Romain Guy2010-10-051-12/+10
| | | This speeds up applications, especially Launcher.
* Fix INVALID_OPERATION error with layers rendering.Romain Guy2010-10-011-3/+3
| | | | | | | | This change is a workaround for a driver bug that causes an INVALID_OPERATION to be thrown on every glCopyTexSubImage() call. This change also adds a new test for gradients local matrices. Change-Id: I41b7437481026702d0a3a9677f099b4557c0a84e
* Correctly initialize/refresh layers.Romain Guy2010-09-221-0/+4
| | | | Change-Id: Id8cdcf587b13098460f7d4aa1bd17708784d89bb
* Correct implementation of saveLayer().Romain Guy2010-09-121-11/+2
| | | | Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
* Draw n-patches using OpenGL.Romain Guy2010-07-081-1/+3
| | | | | | Currently only tested with title bars and buttons. Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6
* Simpler way to deal with the FBO multi-cache.Romain Guy2010-07-071-3/+10
| | | | | | | | 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
* Add a layer (FBO) cache.Romain Guy2010-07-061-0/+90
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