summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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-211-9/+9
| | | | | | 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
* Use VBOs to render most geometries.Romain Guy2010-10-181-44/+46
| | | | Change-Id: I4360dc4fe5693ab425450c107282b2c22db4dca7
* Don't draw entirely transparent 9patch meshes.Romain Guy2010-10-151-5/+7
| | | | Change-Id: If3e62e18b8e0dbde8a22f8ede2889b86500a4dc2
* Fix text rendering artifact.Romain Guy2010-10-151-0/+7
| | | | Change-Id: I50f47207846e4208d363dde4e8f5f1a0f23d2d75
* Fix clipping issue in StackView.Romain Guy2010-10-151-3/+6
| | | | Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
* Fix text rendering issue.Romain Guy2010-10-141-3/+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
* Fix layer rendering glitch.Romain Guy2010-10-131-2/+1
| | | | Change-Id: If2f987fe5526fc88743ca3e91edde4f8232ff658
* Don't draw TextView's alpha layers when not needed.Romain Guy2010-10-131-0/+1
| | | | Change-Id: Iedf42cbc62d727f18500c78fcccf2d081a761fec
* Return identity matrix when rendering in an FBO.Romain Guy2010-10-131-1/+4
| | | | Change-Id: I57438e745b30c8cfe16c269f3cafcd719049d705
* Add a getNativeMatrix() API.Romain Guy2010-10-131-0/+4
| | | | | | | 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-121-0/+2
| | | | Change-Id: Ia6e67699d98f69c8a93385b3ecbdd814c7b16921
* Optimize 9patch rendering.Romain Guy2010-10-121-3/+3
| | | | | | | This change detects empty quads in 9patches and removes them from the mesh to avoid unnecessary blending. Change-Id: I4500566fb4cb6845d64dcb59b522c0be7a0ec704
* 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-111-2/+24
| | | | Change-Id: Icd7d8ef1f57b51a24faf32f7004125e6300d4fdc
* Optimize GLSL shaders.Romain Guy2010-10-111-3/+11
| | | | Change-Id: I9a5e01bced63d8da0c61330a543a2b805388a59d
* Don't update 9patches on every frame.Romain Guy2010-10-081-3/+2
| | | | Change-Id: I7ffb2365f83e0453e7d0a0cdcb3fc9308b305238
* Better cache for layers, reduce memory usage and increase framerate.Romain Guy2010-10-081-9/+9
| | | | Change-Id: I5ff864a361db4791bd5ff6be716f7ce692ef572d
* Don't clear the framebuffer when not needed.Romain Guy2010-10-061-4/+9
|
* Optimize saveLayer() when the clip flag is set.Romain Guy2010-10-051-39/+121
| | | This speeds up applications, especially Launcher.
* Remove logs to reduce logcat spam.Romain Guy2010-10-041-3/+0
| | | | Change-Id: I5fc295b05b5d82bb86827b88e94dd51e8bcdc7d3
* Apply bilinear filtering on text only when necessary.Romain Guy2010-10-041-2/+4
| | | | Change-Id: Ic903f4b5d30e9c92528c6291941896efe4729ee3
* Fix INVALID_OPERATION error with layers rendering.Romain Guy2010-10-011-11/+18
| | | | | | | | 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
* Adding display lists to the GL renderer (checkpoint.)Romain Guy2010-09-261-4/+5
| | | | Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
* Add debug mode to measure performance.Romain Guy2010-09-241-0/+3
| | | | Change-Id: I9d4c84034dc200b99c8266165942a7cdbcb5c0c5
* Correctly initialize/refresh layers.Romain Guy2010-09-221-2/+9
| | | | 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-221-6/+11
| | | Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c
* Fix positioning of 1 pixel wide lines (esp. non AA lines.)Romain Guy2010-09-171-1/+1
| | | | Change-Id: Ic155cac72f351edae35dffdfbb236954f57ba7de
* Add support for non AA lines.Romain Guy2010-09-171-10/+32
| | | | Change-Id: Id5200e94815404d62760437d0d2dbb0a9276c700
* Add support for drawLines(), with anti-aliasingRomain Guy2010-09-161-4/+61
| | | | Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
* Snap layer bounds to pixel boundaries.Romain Guy2010-09-161-0/+2
| | | | Change-Id: I272ceebf469a119f01ea9d73cdd68519afdffa99
* Better error handling in the OpenGL renderer.Romain Guy2010-09-161-1/+15
| | | | | | | Add a glGetError() check on every frame Don't attempt to create textures larger than the maximum size allowed Change-Id: Iee4afae16089406dbe8bf10fc93b674f1271a0ca
* Fix 9patch rendering.Romain Guy2010-09-151-12/+9
| | | | Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
* Docs updates.Romain Guy2010-09-131-1/+9
| | | | Change-Id: Iff395e1c6d81a484a2c4ad6e88357c0134971b78
* Document the implementation of saveLayer().Romain Guy2010-09-131-15/+50
| | | | | | | | | | | | The implementation is simple but tricky. Leave explanations to my future self so that I don't invent a time machine to come back to now and slap my self. This change also simplifies the way the GL blending function is chosen when compositing a layer. It reuses existing OpenGLRenderer APIs and is easier to understand. Change-Id: I1b9cf8c5d51e09836d85b8cf157a1c284aa65c59
* Forgot the return value...Romain Guy2010-09-131-1/+2
| | | | Change-Id: Iccf369a613c1cf83f3e948460c567291b084fad2
* Fix rendering issue with layers intersecting the clip rect.Romain Guy2010-09-131-1/+5
| | | | Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
* Fix text rendering issue with text scaling.Romain Guy2010-09-121-12/+0
| | | | Change-Id: I1f3ae40025697e8f8ca0616ee6550fe215cadcc8
* Optimize calls to glCopyTexImage2D().Romain Guy2010-09-121-8/+30
| | | | Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
* Correct implementation of saveLayer().Romain Guy2010-09-121-67/+81
| | | | Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
* Add support for advanced blend modes with the framebuffer.Romain Guy2010-09-091-33/+64
| | | | | | | This adds the ability to blend with the framebuffer using Darken, Lighten, Add, Multiply, Overlay and Screen. Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
* Do not convert 8888 bitmaps to 565 when doing a copy.Romain Guy2010-09-091-0/+1
| | | | | | | | Bug #2988077 This change keeps the 8888 format for new bitmaps and also keeps, when possible, the opaque flag. Change-Id: Ia61f2e89936916b329212a4c59a7d815c329f84e
* Add support for Canvas flags on save.Romain Guy2010-09-011-35/+42
| | | | | | This is required for the rewrite of layers support. Change-Id: I5c0867dcf5aeb0392c8d0fbab05febb0eaff70d9
* Add hooks for hardware accelerated WebView.Romain Guy2010-08-311-0/+23
| | | | Change-Id: I907cdec8a67594f87749ac46bda85f04af5a2003
* Apply gamma correction to font rendering.Romain Guy2010-08-271-3/+5
| | | | Change-Id: I1b05f40e356221b2a5eb9400e67d77ecd98ed6c4
* Use only one GL context per process, share chaches.Romain Guy2010-08-241-113/+51
| | | | Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11