summaryrefslogtreecommitdiffstats
path: root/libs/hwui/shaders
Commit message (Collapse)AuthorAgeFilesLines
* Moved all the rendering code to the new shader generator.Romain Guy2010-07-296-88/+0
| | | | | | | | | | | The generator supports features that are not yet implement in the renderer: color matrix, lighting, porterduff color blending and composite shaders. This change also adds support for repeated/mirrored non-power of 2 bitmap shaders. Change-Id: I903a11a070c0eb9cc8850a60ef305751e5b47234
* Generate shaders to cover all possible cases.Romain Guy2010-07-272-12/+1
| | | | | | | | | | With this change, all the vertex and fragment shaders used by the GL renderer are now generated based on a program description supplied by the caller. This allows the renderer to generate a large number of shaders without having to write all the possible combinations by hand. The generated shaders are stored in a program cache. Change-Id: If54d286e77ae021c724d42090da476df12a18ebb
* Add text rendering.Romain Guy2010-07-211-0/+14
| | | | Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
* Add support for linear gradients.Romain Guy2010-07-191-1/+5
| | | | Change-Id: Id15329da065045b3f06fdaed615f33cd57608496
* Add program for linear gradient.Romain Guy2010-07-162-0/+30
| | | | | | | | This change adds a new DrawLinearGradientProgram class to enable the drawing of linear gradients. Two new vertex and fragment shaders are introduced, based on DrawTextureProgram's shaders. Change-Id: I885afc076bb6cef8cd3962ae21a086fa6a03bf96
* Add support for BitmapShader.Romain Guy2010-07-152-1/+5
| | | | | | This change also fixes an issue with the clip and layers. Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
* Remove math from the vertex shader.Romain Guy2010-07-092-6/+2
| | | | Change-Id: I02847a60a8734bf8b3d29ec12e76297795095e38
* Fix alpha blending and improve fragment shaders performance.Romain Guy2010-07-094-11/+4
| | | | Change-Id: Ib74f6941d25ca6f6a41708e541174eaa7e8d9bc2
* Add implementations for saveLayerAlpha() and textured rects.Romain Guy2010-06-263-3/+33
| | | | | | | | | | | Even though there's an implementation for textured rects, drawBitmap() is not hooked up yet as it will require a good texture cache. This method is implemented using FBOs. There's currently an issue either in the driver or in the Canvas renderer that forces the FBO to be fullscreen, which is extremely expensive and yields terrible performance. Change-Id: I148419195e12d45653c60186938aa78c23a68e2c
* Convert tabs to spaces.Romain Guy2010-06-251-2/+2
| | | | Change-Id: I5d3ae48af79b19b6d293deff0521e4bb57d5114b
* Implement quickReject() and drawRect().Romain Guy2010-06-251-1/+2
| | | | | | | The OpenGL ES 2.0 renderer can now draw colored rectangles. At least there's something on screen now. Change-Id: I80a13ccc1dd56784edf74f2670a364f30700234a
* Add colored rectangles implementation in OpenGLRenderer.Romain Guy2010-06-242-0/+27
Drawing two rectangles one after the other discards the second one because of Z buffering issues. This will be fixed in another changelist. Change-Id: Ida1b3cde8a78e60cacc07e477abc44def527ff67