summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/RenderEngine/GLES20RenderEngine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use black for blackout layerAndy McFadden2013-10-111-1/+1
| | | | | | | | | | SurfaceFlinger was rendering dark purple for secure content, which showed up when we took a screen shot for the orientation change animation. Use black instead. Bug 11157921 Change-Id: I3895e8168891d49dc5b84eed599bcd0a303bb70a
* color blindness enhancementMathias Agopian2013-09-041-3/+79
| | | | | | | | | | | | | | | | | | | | | | | | | This is an attempt at improving the experience of users with color vision impairement. At this time this feature can only be enabled for debugging: adb shell service call SurfaceFlinger 1014 i32 PARAM with PARAM: 0 : disabled 1 : protanomaly/protanopia simulation 2 : deuteranomaly/deuteranopia simulation 3 : tritanopia/tritanomaly simulation 11, 12, 13: same as above w/ attempted correction/enhancement The enhancement algorithm tries to spread the "error" such that tones that would otherwise appear similar can be distinguished. Bug: 9465644 Change-Id: I860f7eed0cb81f54ef9cf24ad78155b6395ade48
* Merge changes I8283a989,I64add89a into klp-devMathias Agopian2013-08-311-19/+3
|\ | | | | | | | | | | * changes: switch to use mat4 vector and matrix classes for graphics use
| * switch to use mat4Mathias Agopian2013-08-261-19/+3
| | | | | | | | Change-Id: I8283a989cfd2b74d53958150bc90298bc083fee7
* | minor clean-up of the GLESRendererMathias Agopian2013-08-281-12/+5
|/ | | | Change-Id: I978dea25b7687fbbbb283f09c24e115d9bad49a2
* fix DimLayer in GLES2.0 SFMathias Agopian2013-08-231-2/+5
| | | | | | | DimLayer state wasn't initialized properly. Bug: 10442967 Change-Id: I384c1d85c58c96ae29d5daa1fabee9f4ce003501
* Encapsulate textures into their own Texture classMathias Agopian2013-08-161-13/+13
| | | | | | | | | | | | the main reason for doing this is so that we can have access to informations about a texture (like its dimension) close to where we generate and use shaders in ES 2.0. Previously, there wasn't any way to get to a texture's size from a RenderEngine implementation. Bug: 8679321 Change-Id: I388b338a70d07e3e8177dde248710ea1e4c82dff
* Fix ES2 composition on some devicesMathias Agopian2013-08-151-7/+32
| | | | | | | | | - turns out fragment shaders don't have default precision by default - GLES 1.x extensions that became core in GLES 2.0 don't always work as extensions in GLES 2.0 (!) Bug: 8679321 Change-Id: I5a4a93e158247910399325a965af5d2e3bbece9b
* don't reallocate the mesh each time we use itMathias Agopian2013-08-131-2/+2
| | | | | | | | the Mesh object can be part of each Layer (at least currently). also reworked the Mesh code a bit to make it easier to access the vertex data. Change-Id: I0490851ba898f0aa2e55b62958dcd8bdb535e98b
* SurfaceFlinger now uses GLES 2.x when availableMathias Agopian2013-08-131-0/+213
Bug: 8679321 Change-Id: I2b152d01fb4e2de2ea9fe87f1ddbd6826d7520d7