summaryrefslogtreecommitdiffstats
path: root/libs/hwui
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix Caches singleton to avoid resource leaks"Chet Haase2010-10-243-45/+82
|\
| * Fix Caches singleton to avoid resource leaksChet Haase2010-10-243-45/+82
| | | | | | | | | | | | | | | | 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
* | Fix rendering issue with layers.Romain Guy2010-10-222-18/+24
|/ | | | | | | | | | | A change was made earlier in the renderer to not snap the current clip rect on every clip operation. The clip rect must not be snapped to pixel boundaries before being used for pixel precision operations. Some operations were doing this correctly, others were not. For instance, a layer was always created by rounding to the correct pixels, but composing a layer was done with a non rounded clip, thus resulting in slightly odd behaviors. Change-Id: I31c2cf0a343450470bcd449c3f13fe37648b9c7c
* Don't use two different variables to refer to mSnapshot.Romain Guy2010-10-221-1/+1
| | | | Change-Id: Ie4a0616d2fe0b040ac14b734a9ddf77bf1f35b0c
* Don't perform glCopyTextImage with coordinates outside the buffer.Romain Guy2010-10-221-0/+8
| | | | | | Bug #3122179 Change-Id: I91ed397e9e553a8eeb69d82d0c5b1e49a3cdd5ff
* Optimizing display lists by referencing pointers to resources instead of ↵Chet Haase2010-10-2111-196/+469
| | | | | | copying them Change-Id: I81ad3551d74aa1e5bb64d69e33d2eb29a6c1eb6a
* Solve rendering issue with embedded WebViews.Romain Guy2010-10-191-8/+5
| | | | | | | | | Bug #3094017 The blending mode was not appropriately set after WebView released the context. Change-Id: Ib36d48e82c12f6d131dd5a0bcde9106925b8da63
* Small cleanup.Romain Guy2010-10-184-17/+16
| | | | Change-Id: I0e5b9154a2d93af793d62f462d68cb7c6c3f6d75
* Use VBOs to render most geometries.Romain Guy2010-10-1811-85/+172
| | | | Change-Id: I4360dc4fe5693ab425450c107282b2c22db4dca7
* Don't draw entirely transparent 9patch meshes.Romain Guy2010-10-153-7/+14
| | | | Change-Id: If3e62e18b8e0dbde8a22f8ede2889b86500a4dc2
* Fix text rendering artifact.Romain Guy2010-10-151-0/+7
| | | | Change-Id: I50f47207846e4208d363dde4e8f5f1a0f23d2d75
* Fix clipping issue in StackView.Romain Guy2010-10-152-4/+7
| | | | Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
* Fix text rendering issue.Romain Guy2010-10-142-4/+9
| | | | | | | | The local clip rect could be off by one pixel when a 3D transform was applied to a text primitive. This would cause small rendering glitches in Launcher in particular. Change-Id: I1254f6a5838c26810cbe969b096679d40b8dd504
* Color filters were ignored by the program cache fast path.Romain Guy2010-10-132-2/+2
| | | | Change-Id: I08f2f02d356234a674be778d088e0558fd49c849
* Fix layer rendering glitch.Romain Guy2010-10-132-6/+5
| | | | Change-Id: If2f987fe5526fc88743ca3e91edde4f8232ff658
* Don't draw TextView's alpha layers when not needed.Romain Guy2010-10-131-0/+1
| | | | Change-Id: Iedf42cbc62d727f18500c78fcccf2d081a761fec
* Small potential performance improvement for fonts rendering.Romain Guy2010-10-131-3/+3
| | | | Change-Id: If59c1e7803b84340fbc8b31ce6171ef0e5dc6189
* Return identity matrix when rendering in an FBO.Romain Guy2010-10-132-1/+7
| | | | Change-Id: I57438e745b30c8cfe16c269f3cafcd719049d705
* Add a getNativeMatrix() API.Romain Guy2010-10-132-0/+5
| | | | | | | This API can be used by WebView to apply the appropriate transform on its rendering. Change-Id: I79aa39a29805f462fb08226370328815e74bdc52
* Optimize layer clears.Romain Guy2010-10-121-4/+3
| | | | | | | Don't clear the entire texture when we use textures that are bigger than the layer itself. This will save time during the glClear() calls. Change-Id: I06f3259ba62affb3708ba69ea41418832c7e1a65
* Tweak layers caching for better performance in Launcher.Romain Guy2010-10-124-8/+15
| | | | Change-Id: Ia6e67699d98f69c8a93385b3ecbdd814c7b16921
* Remove logging.Romain Guy2010-10-121-1/+1
| | | | Change-Id: Ibcb11d704653d8875e22629ea39e4ee2ebce3c22
* Optimize 9patch rendering.Romain Guy2010-10-1213-51/+166
| | | | | | | This change detects empty quads in 9patches and removes them from the mesh to avoid unnecessary blending. Change-Id: I4500566fb4cb6845d64dcb59b522c0be7a0ec704
* Simplify black texture fragment shader.Romain Guy2010-10-121-2/+2
| | | | Change-Id: If2d43f92f4c98ec128692761a670b0f31207a3c0
* Don't recreate a new texture every time we draw a layer.Romain Guy2010-10-121-13/+8
| | | | Change-Id: I3c28aff5acffc7c6f1ac74805869725426c62d28
* Don't draw fully transparent views/primitives.Romain Guy2010-10-113-6/+34
| | | | Change-Id: Icd7d8ef1f57b51a24faf32f7004125e6300d4fdc
* Optimize GLSL shaders.Romain Guy2010-10-115-40/+220
| | | | Change-Id: I9a5e01bced63d8da0c61330a543a2b805388a59d
* Improve performance of linear gradients.Romain Guy2010-10-111-3/+3
| | | | Change-Id: If1caee31fc045dea13a4c5c10f25f2ffd325c4f8
* Move GenerationCache to the utils directory.Romain Guy2010-10-086-6/+6
| | | | Change-Id: I210ffa8f1d76a102bb7d971c649c20a74d03fbe6
* Don't update 9patches on every frame.Romain Guy2010-10-085-40/+56
| | | | Change-Id: I7ffb2365f83e0453e7d0a0cdcb3fc9308b305238
* Better cache for layers, reduce memory usage and increase framerate.Romain Guy2010-10-0810-97/+563
| | | | Change-Id: I5ff864a361db4791bd5ff6be716f7ce692ef572d
* Add 3D transforms support to all gradients.Romain Guy2010-10-073-93/+58
| | | | Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
* Don't clear the framebuffer when not needed.Romain Guy2010-10-066-10/+15
|
* Apply 3D transformations to gradient shaders.Romain Guy2010-10-063-25/+51
| | | | | | | This fixes only linear gradients. Sweep and radial gradients, as well as bitmap shaders, will be fixed in a future commit. Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
* Optimize saveLayer() when the clip flag is set.Romain Guy2010-10-0510-64/+220
| | | This speeds up applications, especially Launcher.
* Add support for paletted textures.Romain Guy2010-10-052-1/+22
| | | | Change-Id: I36e6069bd58f78c609cdd1f3e4560c98f128f48e
* Remove logs to reduce logcat spam.Romain Guy2010-10-041-3/+0
| | | | Change-Id: I5fc295b05b5d82bb86827b88e94dd51e8bcdc7d3
* Reorder logs.Romain Guy2010-10-041-1/+1
| | | | Change-Id: I4adbd53662e1f509c860898c8ff9d19eaabd6d5b
* Snap the clip rectangle to pixel boundaries.Romain Guy2010-10-041-0/+1
| | | | Change-Id: Iac2765303552f385995fe46e219af456e0501da7
* Apply bilinear filtering on text only when necessary.Romain Guy2010-10-045-5/+29
| | | | Change-Id: Ic903f4b5d30e9c92528c6291941896efe4729ee3
* Initialize font texture cache.Romain Guy2010-10-031-0/+2
| | | | | | | Now that text is renderer using bilinear filtering, each character is surrounded by a 1 pixel border. This border needs to be initialized to a transparent value. Change-Id: I26d3195db4bd576ac1f2da4c8f8e4dd18768bf12
* Apply bilinear filtering to text.Romain Guy2010-10-014-58/+77
| | | | Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
* Fix INVALID_OPERATION error with layers rendering.Romain Guy2010-10-013-14/+23
| | | | | | | | 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
* Make simple paths made of lines work.Romain Guy2010-09-301-2/+2
| | | | | | Bug #3041098 Change-Id: Ife9c3f01ded10e2bb35b1cdf1a54734d8347fee4
* Add display lists caching.Romain Guy2010-09-293-46/+404
| | | | Change-Id: Iac3a248a81ed8cb076a83ef9d186b8ebba685b4c
* Adding display lists to the GL renderer (checkpoint.)Romain Guy2010-09-269-35/+619
| | | | Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
* Add debug mode to measure performance.Romain Guy2010-09-2410-29/+380
| | | | Change-Id: I9d4c84034dc200b99c8266165942a7cdbcb5c0c5
* Correctly initialize/refresh layers.Romain Guy2010-09-223-7/+16
| | | | Change-Id: Id8cdcf587b13098460f7d4aa1bd17708784d89bb
* Draw text decorations with lines instead of rectangles.Romain Guy2010-09-221-9/+20
| | | | Change-Id: Icd25c85c3a24da96a3d2f76f9477da6f87e0303c
* Fix OpenGL errors in various places.Romain Guy2010-09-226-13/+24
| | | Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c