summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.h
Commit message (Collapse)AuthorAgeFilesLines
* Line endcaps for AA lines are now antialiased.Chet Haase2011-05-021-1/+3
| | | | | | Also fixed other minor issues with AA and line rendering. Change-Id: Icd4638d27c70e2ee0f28b5d9a2b97d8b29e8ac4d
* Enable anti-aliasing for hw-accelerated linesChet Haase2011-04-211-0/+3
| | | | | | | Draw anti-aliased lines with OpenGL by constructing a quad with a border that fades out (to mimic fragment coverage). Change-Id: Ib81a3e62d663acdf1b46b401ac4aa7ee9855cc7e
* Add logging of graphics acceleration info to bugreportsChet Haase2011-04-011-0/+1
| | | | Change-Id: I9fa4cda6ccf92df9d1c644ccdc0e7274a30106e0
* Add support for arcs.Romain Guy2011-01-231-0/+1
| | | | Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
* Add support for ovals and stroked rectangles.Romain Guy2011-01-231-0/+2
| | | | Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
* Log only 1 line per process when using OpenGLRenderer.Romain Guy2011-01-211-1/+1
| | | | Change-Id: Idbdd6b84f31301e58ed53e0d50fd61fece192dfa
* Remove unnecessary code.Romain Guy2011-01-201-1/+1
| | | | Change-Id: I83eba3406c26a4028af08b4d4c95ecd02803e75a
* Add rounded rects and circles support to OpenGLRenderer.Romain Guy2011-01-191-0/+3
| | | | Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
* Cleanup implementation of hardware layers.Romain Guy2011-01-131-9/+3
| | | | | | | | | | The new implementation relies on OpenGLRenderer's existing layer code instead of duplicating it. The new code is much cleaner, with simpler and better APIs and allows tracking of drawn regions inside layers. Region tracking is not yet enabled but this will be done in a future CL. Change-Id: Ie826121a2227de8252c77b992a61218defea5143
* Cleanup GL objects on the correct thread.Romain Guy2011-01-121-0/+14
| | | | Change-Id: Iddfea6e08a6591a4fab147151098ef27005f373d
* New, better line drawing implementation.Romain Guy2010-12-081-3/+0
| | | | | | | Bug #3207544 Bug #3225875 Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
* Free resources only from the GL context thread.Romain Guy2010-11-111-0/+6
| | | | | | | | | | Bug #3179882 Resources were freed following garbage collections on a worker thread. This worker thread had no EGL context, which would cause the renderer to incorrectly assume that the memory was liberated. Change-Id: Ifdb51f94ddf42641e8654522787bfac532976c7c
* Add new runtime debug flags.Romain Guy2010-11-101-1/+12
| | | | Change-Id: I07955de166a89b5053c6c13f250bb3e2936ca86e
* Move all debug flags in a single place.Romain Guy2010-11-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | This change also adds a new memory usage flag. When turned on, the following is printed after every frame: D/OpenGLRenderer( 3723): Current memory usage / total memory usage (bytes): D/OpenGLRenderer( 3723): TextureCache 3766680 / 20971520 D/OpenGLRenderer( 3723): LayerCache 3538944 / 8388608 D/OpenGLRenderer( 3723): GradientCache 135168 / 524288 D/OpenGLRenderer( 3723): PathCache 41180 / 4194304 D/OpenGLRenderer( 3723): TextDropShadowCache 0 / 2097152 D/OpenGLRenderer( 3723): FontRenderer 0 262144 / 262144 D/OpenGLRenderer( 3723): FontRenderer 1 262144 / 262144 D/OpenGLRenderer( 3723): FontRenderer 2 262144 / 262144 D/OpenGLRenderer( 3723): Other: D/OpenGLRenderer( 3723): FboCache 2 / 12 D/OpenGLRenderer( 3723): PatchCache 31 / 512 D/OpenGLRenderer( 3723): Total memory usage: D/OpenGLRenderer( 3723): 8268404 bytes, 7.89 MB This should help tracking possibe memory issues. Change-Id: I83f483ca1d2dbef904829bce368e33fe5503e8d6
* Optimize FBO drawing with regions.Romain Guy2010-11-021-4/+28
| | | | | | | | | 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
* Remove unnecessary GL calls.Romain Guy2010-10-261-0/+8
| | | | | | | This change batches calls to glScissor() and removes extra GL queries and glActiveTexture() calls. Change-Id: I1cd079d314f87cd9c088f95c8d4909c2f860f6aa
* Small cleanup.Romain Guy2010-10-251-2/+3
| | | | | | | Removes unnecessary forward class declaration, make Caches::currentBuffer private instead of public. Change-Id: Idba6325c8c602d89239e667cb8ec87e7943f8e75
* Fix Caches singleton to avoid resource leaksChet Haase2010-10-241-45/+4
| | | | | | | | The declaration of Singleton objects must be in CPP files (not header files) to avoid creating separate instances of what is supposedly a single object. Change-Id: Ie903384824a458b5572f3ce5b6cfb359c18a9c44
* Optimizing display lists by referencing pointers to resources instead of ↵Chet Haase2010-10-211-0/+2
| | | | | | copying them Change-Id: I81ad3551d74aa1e5bb64d69e33d2eb29a6c1eb6a
* Use VBOs to render most geometries.Romain Guy2010-10-181-1/+72
| | | | Change-Id: I4360dc4fe5693ab425450c107282b2c22db4dca7
* Reorder logs.Romain Guy2010-10-041-1/+1
| | | | Change-Id: I4adbd53662e1f509c860898c8ff9d19eaabd6d5b
* Add debug mode to measure performance.Romain Guy2010-09-241-0/+2
| | | | Change-Id: I9d4c84034dc200b99c8266165942a7cdbcb5c0c5
* Fix OpenGL errors in various places.Romain Guy2010-09-221-0/+3
| | | Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c
* Purge Skia objects from GL caches as needed.Romain Guy2010-09-081-1/+3
| | | | Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
* Apply gamma correction to font rendering.Romain Guy2010-08-271-3/+2
| | | | Change-Id: I1b05f40e356221b2a5eb9400e67d77ecd98ed6c4
* Fix passion buildRomain Guy2010-08-241-0/+2
| | | | Change-Id: I93322bd36a004ac5aa9a0409d22dbf36a2da1680
* Use only one GL context per process, share chaches.Romain Guy2010-08-241-0/+75
Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11