summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Remove vendor specific precision qualifierRomain Guy2012-07-182-36/+17
| | | | Change-Id: I0a56ca7a5a399ec94993d3cea0c4aff6c0f86e39
* Note to selfRomain Guy2012-07-181-0/+2
| | | | Change-Id: Ic5699bdbf880ad68748c827bb5b4976b12d4d413
* Clip lines, AA rects and points correctlyRomain Guy2012-07-181-34/+43
| | | | Change-Id: I900dd986f397b66f133e6021aa4c2539e7abc2b9
* Tweak text gamma correctionRomain Guy2012-07-182-7/+6
| | | | Change-Id: Icd3326e6a054d6020c3ed61c8459394bc87401dd
* Add a new method for text gamma correctionRomain Guy2012-07-184-33/+115
| | | | | | | | | | | | | | | | | | | To select the gamma correction method, adb shell setprop hwui.text_gamma_correction with one of the following values: lookup3 lookup shader3 shader See Properties.h for more information about these different methods. You can also control gamma correction using the following properties: hwui.text_gamma hwui.text_gamma.black_threshold hwui.text_gamma.white_threshold Change-Id: I47970b804d2c590c37d3da5008db094241579e25
* Correctly pre-clip paths when recording display listsRomain Guy2012-07-171-2/+5
| | | | | | | | | | | | | External bug: http://code.google.com/p/android/issues/detail?id=34946 DisplayListRenderer::drawPath was not invoking quickReject() properly, passing x,y,width,height instead of left,top,right,bottom. A path could thus get rejected when it should be drawn instead. While working on this change I found a similar issue with another drawing command, drawBitmapData(). Change-Id: I56484e8c101768cde6a78625290872f7849dd5ee
* Don't clear the dirty clip flag if it's not appliedRomain Guy2012-07-177-16/+59
| | | | | | Bug #6833979 Change-Id: I0ea78b7f31a557a335de10d910d03b0520029080
* Add shader-based text gamma correctionRomain Guy2012-07-167-12/+117
| | | | | | | | To enable it, the system property ro.hwui.text_gamma_shader must be set to true. For testing, DEBUG_FONT_RENDERER_FORCE_SHADER_GAMMA can be set to 1 in libhwui/Debug.h. Change-Id: If345c6b71b67ecf1ef2e8847b71f30f3ef251a27
* Add makefile flags for perfRomain Guy2012-07-161-0/+2
| | | | Change-Id: Ibcb6e1c883551273c3392cdaa40cd0b71a3bfa70
* Don't copy paints for 9patchesRomain Guy2012-07-163-46/+78
| | | | Change-Id: I863100a0dc53fec1a3a1b2acbdeb76e6049ffe58
* Refactor GammaFontRendererRomain Guy2012-07-137-37/+153
| | | | | | | This change is the first step to a shader-based text antialias gamma correction. Change-Id: I9eb02d4c56cb95d05219f712290c865b46141954
* Merge "Improve rendering speed by disabling scissor tests"Romain Guy2012-07-135-14/+45
|\
| * Improve rendering speed by disabling scissor testsRomain Guy2012-07-135-14/+45
| | | | | | | | | | | | | | | | | | | | | | | | This change improves execution of display lists, particularly on tiled renderers. The goal is to disable the scissor test as often as possible. Drawing commands are rarely clipped by View bounds so most of them can be drawn without doing a scissor test. The speed improvements scale with the number of views and drawing commands. Change-Id: Ibd9b5e051a3e4300562463805acc4fd744ba6266
* | Merge "Text shadow alpha handling incorrect"Romain Guy2012-07-132-16/+5
|\ \ | |/
| * Text shadow alpha handling incorrectRomain Guy2012-07-132-16/+5
| | | | | | | | | | | | | | | | External bug: http://code.google.com/p/android/issues/detail?id=34879 This CL also fixes a bug where a View's alpha would be applied twice. Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa
* | Merge "Remove obsolete optimization"Romain Guy2012-07-123-8/+4
|\ \ | |/
| * Remove obsolete optimizationRomain Guy2012-07-123-8/+4
| | | | | | | | Change-Id: I2d43c009c62a7f4a4a2e0a6303bdfa692c4b8c8c
* | Remove unused View.flushLayer() APIRomain Guy2012-07-111-1/+2
|/ | | | Change-Id: I5d4c7388afb5265964ab6b769cc0abfee9745c84
* Add mode when open(O_CREAT) is used.Nick Kralevich2012-06-261-1/+3
| | | | | | | | | | When creating a new file using open(..., O_CREAT), it is an error to fail to specify a creation mode. If a mode is not specified, a random stack provided value is used as the "mode". This will become a compile error in a future Android change. Change-Id: I8635e8b69587ed107253870d991c3fcf563ca876
* am 68cefd20: Merge "Textured text calls could be invisible Bug #6597730" ↵Romain Guy2012-06-122-0/+5
|\ | | | | | | | | | | | | into jb-dev * commit '68cefd201809372a547257a273b805cabbd0da68': Textured text calls could be invisible Bug #6597730
| * Textured text calls could be invisibleRomain Guy2012-06-112-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #6597730 Text would sometimes not appear when rendered with textured content (BitmapShader, LinearGradientShader, etc.) This was due to a misuse of OpenGL texture unit in FontRenderer. Textured text normally uses two texture units: - texture unit 0 for the font cache - texture unit 1 for the textured content (gradient, etc.) Recent changes to the font renderer allow it to bind new textures while processing the text's geometry (this happens when caches get full or when switching font size for instance.) The bindings were done without ensuring the texture unit was the correct one (unit 0), thus replacing the content of another texture unit (unit 1). This lead to text being drawn using the font cache itself as the content texture, making the text invisible. Change-Id: I392b4c884f09223305f6cbc6253e2ef9a98944c9
* | am 44b2fe3f: Track canvas clearing for swap buffers logic.Chet Haase2012-06-076-11/+15
|\ \ | |/ | | | | | | * commit '44b2fe3fc114ee5f7273c6b0fee2cc999bf244a2': Track canvas clearing for swap buffers logic.
| * Track canvas clearing for swap buffers logic.Chet Haase2012-06-076-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous fix made it necessary for a frame to render something to GL in order to cause a call to eglSwapBuffers(). Besides the calls being tracked as part of issuing a DisplayList, there is also a potential call to clear the canvas (via glClear()) on non-opaque surfaces. This call is also good to track, since a surface that gets cleared without any other drawing operations is worth flipping to the screen (to erase old contents on that surface). This fix tracks the status of the pre-draw operations to find out whether glClear() was called and then sets the drawing status appropriately. Issue #6606422 QuickContact dismissal is janky again (Tracking) Change-Id: I5fcaccfdc9293dd46b83f2fc279730a5d2740ebf
* | am 8f1f714f: Merge "Revert "Add more temporary logging for investigating ↵Chris Craik2012-06-061-5/+2
|\ \ | |/ | | | | | | | | | | detachFunctor"" into jb-dev * commit '8f1f714f831bf8bf10f94211c42e36ef2851810d': Revert "Add more temporary logging for investigating detachFunctor"
| * Revert "Add more temporary logging for investigating detachFunctor"Chris Craik2012-06-061-5/+2
| | | | | | | | | | | | | | | | bug:6608646 This reverts commit 8857b2f76abad1e4ec742dfd85d0c997880be376 Change-Id: I1563b5974c52b84201ae448298f804eb0dcc235d
* | am 3676b137: Merge "Add more temporary logging for investigating ↵Chris Craik2012-06-051-2/+5
|\ \ | |/ | | | | | | | | | | detachFunctor" into jb-dev * commit '3676b137ecf2f24e88e8a3567c11234e7d4416d2': Add more temporary logging for investigating detachFunctor
| * Add more temporary logging for investigating detachFunctorChris Craik2012-06-051-2/+5
| | | | | | | | | | bug:6596807 Change-Id: Ic9e34e323b12a887f2e8df0773a6155627b6a64f
* | am 51df04b9: Port the legacy velocity tracker strategy.Jeff Brown2012-06-041-0/+126
|\ \ | |/ | | | | | | * commit '51df04b93e8e362edd867abd7efaf1659b8b8b82': Port the legacy velocity tracker strategy.
| * Port the legacy velocity tracker strategy.Jeff Brown2012-06-041-0/+126
| | | | | | | | | | | | | | | | For comparison purposes, port the legacy velocity tracker algorithm as it behaved prior to ICS. Bug: 6413587 Change-Id: I7e8e56584dcdb1a3c660ca9d8f9c5bd5d868e449
* | am a5b06982: Implement a second order integrating VT strategy.Jeff Brown2012-06-041-11/+37
|\ \ | |/ | | | | | | * commit 'a5b0698231459ac5b54cf8e8952ac5c2b2b2198b': Implement a second order integrating VT strategy.
| * Implement a second order integrating VT strategy.Jeff Brown2012-06-041-11/+37
| | | | | | | | | | Bug: 6413587 Change-Id: I51bc7b8cbff22b10b728fc84ee15370e9984dd55
* | am 18f329e9: Implement a weighted least squares VelocityTracker strategy.Jeff Brown2012-06-041-21/+126
|\ \ | |/ | | | | | | * commit '18f329e9480fca75210bb7496e5b4bc987b4ad8f': Implement a weighted least squares VelocityTracker strategy.
| * Implement a weighted least squares VelocityTracker strategy.Jeff Brown2012-06-041-21/+126
| | | | | | | | | | | | | | No change to the default strategy. Bug: 6413587 Change-Id: I08eb6f9a511e65ad637359b55b5993c26ba93b40
* | am 1fbbc071: Merge "Implement an integrating VelocityTracker strategy." into ↵Jeff Brown2012-06-031-0/+104
|\ \ | |/ | | | | | | | | | | jb-dev * commit '1fbbc0716f9b70c6dcee00c4550757077ef7f7b5': Implement an integrating VelocityTracker strategy.
| * Merge "Implement an integrating VelocityTracker strategy." into jb-devJeff Brown2012-06-031-0/+104
| |\
| | * Implement an integrating VelocityTracker strategy.Jeff Brown2012-06-031-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This algorithm better tolerates certain kinds of errors in the touch input than the least squares strategy but it may underestimate the velocity of accelerating movements. This algorithm is mainly of interest as a baseline for testing and comparison with the least squares algorithm, which remains the default. Bug: 6413587 Change-Id: I8ddb50084e44875e234717907e5b06d03f59788c
* | | am f47e76e2: Merge "Make velocity tracker strategy configurable." into jb-devJeff Brown2012-06-031-17/+74
|\ \ \ | |/ / | | | | | | | | | * commit 'f47e76e2c78e78e26110786e99548d718d177c32': Make velocity tracker strategy configurable.
| * | Merge "Make velocity tracker strategy configurable." into jb-devJeff Brown2012-06-031-17/+74
| |\ \ | | |/
| | * Make velocity tracker strategy configurable.Jeff Brown2012-06-031-17/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change is very useful for testing purposes because it makes it easy to compare different implementations to see how they behave. There is no change to the current default strategy. Bug: 6413587 Change-Id: I4d8567aa4160571ba9fa397ce419882cd9366749
* | | am 561ff8a7: Merge "Skip eglSwapBuffers() call when we do not draw to GL" ↵Chet Haase2012-06-014-147/+202
|\ \ \ | |/ / | | | | | | | | | | | | | | | into jb-dev * commit '561ff8a74e3d9ea15f58d9b6534da9ea5a63d84b': Skip eglSwapBuffers() call when we do not draw to GL
| * | Skip eglSwapBuffers() call when we do not draw to GLChet Haase2012-05-314-147/+202
| |/ | | | | | | | | | | | | | | | | | | The fix is to track when we issue GL drawing commands, and to skip the call to eglSwapBuffers() when a DisplayList does not result in any actual rendering calls to GL. Issue #6364143 QuickMuni list items and buttons flicker instead of fade Change-Id: I60a02c61a58c32d92481a1e814b4c8a49c6a37a3
* | am 3534e134: Merge "Avoid crash if onDetachedFromWindow called after ↵Chris Craik2012-05-221-2/+1
|\ \ | |/ | | | | | | | | | | destroy" into jb-dev * commit '3534e13486a0081b1229e698f13bd3a37efa3fb0': Avoid crash if onDetachedFromWindow called after destroy
| * Merge "Avoid crash if onDetachedFromWindow called after destroy" into jb-devChris Craik2012-05-221-2/+1
| |\
| | * Avoid crash if onDetachedFromWindow called after destroyChris Craik2012-05-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This also removes the temporary logging from commit f8dafa14e058cdc2f408b59be7911abaceb73c47. bug:6535911 Change-Id: Icf1d0438b349a0e92e7d9cefed57a252eed2b9b0
* | | am 7a9328a3: Merge "Add temporary functor lifetime logging" into jb-devChris Craik2012-05-221-1/+2
|\ \ \ | |/ / | | | | | | | | | * commit '7a9328a3118725389564fe2a9b926837fa3d58a9': Add temporary functor lifetime logging
| * | Merge "Add temporary functor lifetime logging" into jb-devChris Craik2012-05-221-1/+2
| |\ \ | | |/
| | * Add temporary functor lifetime loggingChris Craik2012-05-221-1/+2
| | | | | | | | | | | | | | | | | | bug:6535911 Change-Id: Ida5cc1def7fe1fc314317bbc5df50e1465753deb
* | | am e5a4a3dc: Merge "Ensure we always set the proper blending mode Bug ↵Romain Guy2012-05-223-10/+24
|\ \ \ | |/ / | | | | | | | | | | | | | | | #6527305" into jb-dev * commit 'e5a4a3dc1648844f06d29efd42c9306c3cdf177e': Ensure we always set the proper blending mode Bug #6527305
| * | Merge "Ensure we always set the proper blending mode Bug #6527305" into jb-devRomain Guy2012-05-223-10/+24
| |\ \ | | |/ | |/|
| | * Ensure we always set the proper blending modeRomain Guy2012-05-223-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #6527305 At the beginning of a frame, always set the blending mode that we think GL is using just in case it was modified by another entity (for instance a WebView functor.) Change-Id: I0e1d0abee8a2abb2b8e7622aed28346e89562c06