summaryrefslogtreecommitdiffstats
path: root/libs/hwui/FontRenderer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Optimize FBO drawing with regions.Romain Guy2010-11-021-3/+17
| | | | | | | | | This optimization is currently disabled until Launcher is modified to take advantage of it. The optimization can be enabled by turning on RENDER_LAYERS_AS_REGIONS in the OpenGLRenderer.h file. Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
* Don't draw entirely transparent 9patch meshes.Romain Guy2010-10-151-2/+2
| | | | Change-Id: If3e62e18b8e0dbde8a22f8ede2889b86500a4dc2
* Small potential performance improvement for fonts rendering.Romain Guy2010-10-131-3/+3
| | | | Change-Id: If59c1e7803b84340fbc8b31ce6171ef0e5dc6189
* Apply bilinear filtering on text only when necessary.Romain Guy2010-10-041-2/+3
| | | | 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-011-10/+11
| | | | Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
* Add debug mode to measure performance.Romain Guy2010-09-241-0/+1
| | | | Change-Id: I9d4c84034dc200b99c8266165942a7cdbcb5c0c5
* Forces windows to draw the first time they show.Romain Guy2010-09-131-1/+1
| | | | Change-Id: I239572ee49bc60f30d957f548104e75844859a93
* Fix text rendering issue with text scaling.Romain Guy2010-09-121-7/+17
| | | | Change-Id: I1f3ae40025697e8f8ca0616ee6550fe215cadcc8
* Apply gamma correction to font rendering.Romain Guy2010-08-271-4/+5
| | | | Change-Id: I1b05f40e356221b2a5eb9400e67d77ecd98ed6c4
* Add drop shadows.Romain Guy2010-08-131-13/+26
| | | | Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
* Fix tons of bugs and add new text rendering support.Romain Guy2010-08-101-23/+18
| | | | Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
* Enforce maximum texture size.Romain Guy2010-08-071-3/+8
| | | | | | | | | | | | When an app tries to render a bitmap or path larger than the GPU's maximum texture size, the drawing command is ignored and a warning is logged. This change also makes texture drawing more robust by catching potential errors during texture creation. This change also fixes a crash in the FontRenderer. The destructor would sometimes try to free an uninitialized array. Change-Id: I95ae0939c52192d97b340aa02417bf6d0c962c57
* Added drop shadow renderer to the font class.Alex Sakhartchouk2010-08-061-18/+91
| | | | Change-Id: Id243abfbbb58e54f6a05f592a302984b5321e608
* Adding drop shadow supportAlex Sakhartchouk2010-08-021-8/+185
| | | | Change-Id: I9b1b9568d6cebc0761d96ab678b018571f705ae1
* Fix gradients rendering and destructor crashes.Romain Guy2010-07-291-1/+0
| | | | | | | This changes binds all textures to GL_TEXTURE0, this will have to be changed when combining shader capabilities. Change-Id: I02df4f5ba41e9b01ffa52fd7c26b41477c7ed18f
* Moved all the rendering code to the new shader generator.Romain Guy2010-07-291-0/+1
| | | | | | | | | | | 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
* When font cache still has empty space,Alex Sakhartchouk2010-07-261-11/+55
| | | | | | precache some commonly used characters to reduce studder. Change-Id: I1f66f57482c4a025672dfd1d8ecaf2b9736cd9a0
* Updating parts of font cache as needed instead of the entire map.Alex Sakhartchouk2010-07-231-10/+41
| | | | Change-Id: If9a37e10197255122acdb5b10a0c356edd942d67
* Cleanup, added properties for the FontRenderer.Romain Guy2010-07-231-50/+73
| | | | Change-Id: I909c74815d3ac394438ad8071d17fef5401dbeed
* Add support for text culling.Romain Guy2010-07-221-24/+13
| | | | Change-Id: Ibf0adacdc5c64d40a8000b21d7cb0797d63efe29
* Add text rendering.Romain Guy2010-07-211-0/+467
Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9