summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Caches.h
Commit message (Collapse)AuthorAgeFilesLines
* 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