summaryrefslogtreecommitdiffstats
path: root/libs/hwui/SkiaShader.h
Commit message (Collapse)AuthorAgeFilesLines
* Introduce Caches::bindTexture() to reduce glBindTexture callsRomain Guy2013-06-041-8/+11
| | | | Change-Id: Ic345422567c020c0a9035ff51dcf2ae2a1fc59f4
* Remove C++11 related warningRomain Guy2013-01-031-1/+1
| | | | Change-Id: I250ff7bd0ea49908e11b14c995d77312cd09a8b4
* Pre-multiply color components for 2-stop gradientsRomain Guy2012-08-291-7/+0
| | | | | | Bug #7033344 Change-Id: Ia168501f1dc56ba7a1bb0c55078320432309a66a
* Improve gradientsRomain Guy2012-07-311-7/+2
| | | | | | Avoid using textures for common gradients (two stops from 0.0 to 1.0) Change-Id: Iff55d21b126c8cfc4cfb701669f2339c8f6b131a
* Reduce the size of libhwui by 50%Romain Guy2011-10-121-10/+14
| | | | | | | | This change removes unnessary symbols. All symbols are hidden by default, public APIs with exported symbols are explicitly marked with ANDROID_API. Change-Id: I692fde432a86c12108de1cfd1f6504919a7d5f3f
* Don't crash Launcher on config change.Romain Guy2011-01-141-1/+8
| | | | Change-Id: Ibbbd7146c5ff69e9639b433f39041053654d808c
* Copy shaders when recording them in display lists.Romain Guy2011-01-141-0/+34
| | | | Change-Id: I3f22dd35f1e31c9e5102955d76548098b7b0cd8d
* Reduce number of GL calls when drawing with shaders.Romain Guy2010-11-111-1/+5
| | | | Change-Id: I27aca9f6d381d5c7e363d90a93225d185f2ff4e3
* Optimize FBO drawing with regions.Romain Guy2010-11-021-3/+3
| | | | | | | | | 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 change textures wrap modes on every draw.Romain Guy2010-10-251-2/+2
| | | | Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
* Optimizing display lists by referencing pointers to resources instead of ↵Chet Haase2010-10-211-0/+4
| | | | | | copying them Change-Id: I81ad3551d74aa1e5bb64d69e33d2eb29a6c1eb6a
* Add 3D transforms support to all gradients.Romain Guy2010-10-071-18/+17
| | | | Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
* Apply 3D transformations to gradient shaders.Romain Guy2010-10-061-1/+9
| | | | | | | This fixes only linear gradients. Sweep and radial gradients, as well as bitmap shaders, will be fixed in a future commit. Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
* Fix OpenGL errors in various places.Romain Guy2010-09-221-0/+2
| | | Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c
* Add support for circular gradients to the GL renderer.Romain Guy2010-09-211-3/+21
| | | | | | | This change also adds full support for local transformation matrices on sweep and radial gradients. Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
* Add support for SweepGradient in the GL renderer.Romain Guy2010-09-201-0/+20
| | | | Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
* Add support for drawLines(), with anti-aliasingRomain Guy2010-09-161-0/+6
| | | | Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
* Enforce maximum texture size.Romain Guy2010-08-071-0/+1
| | | | | | | | | | | | 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
* Fix native crash in SkiaShader.Romain Guy2010-08-041-2/+0
| | | | | | Bug #2893733 Change-Id: I7feb9ab113fe0012cf9eb271f2b044f12a5c9c4e
* Add support for ColorFilters.Romain Guy2010-08-021-3/+3
| | | | | | Color filters are fully supported and can be used with shaders. Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
* Refactor Skia shaders handling.Romain Guy2010-07-301-0/+163
With this change, Skia shaders can easily be applied to any mesh. This change also supports ComposeShader. For instance, this can be used to blend a gradient and a bitmap togehter and paint a string of text with the result. Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea