summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Vertex.h
Commit message (Collapse)AuthorAgeFilesLines
* Glop SkiaShader supportChris Craik2015-02-171-2/+0
| | | | Change-Id: I894a0b62701bd02367ab970813e4c332147351a2
* Glop Bitmap and RoundRect clipping supportChris Craik2015-02-121-4/+2
| | | | Change-Id: I4577546a5d2e5f084cc03f39a89db9231b8111ee
* Ensure compatible layout for verticesRob Tsuk2015-01-221-16/+27
| | | | | | | | | Require that these structs have standard layout, which is what we need to pass them to OpenGL. Inheritence with data members violates the rules for standard layout so I re-implemented them using templates to share the code and putting all the data members in each struct. Change-Id: I19cd0e5518728f2d3e0993b17d15fce7be7e0edb
* Cleanup various clang warnings, use unique_ptrs in several placesChris Craik2014-12-231-2/+2
| | | | Change-Id: I347904b25e51fcc7de14b1e72f1acd0f6ba26f3f
* Fix ALL compile warningsJohn Reck2014-07-241-1/+1
| | | | | | All warnings/errors fixed for GCC & Clang Change-Id: I2ece3a136a5ae97a9acc3069537ed986238b5fd3
* Fix Clang warnings/errorsChris Craik2014-01-021-1/+2
| | | | | | | Fix several build warnings (struct != class, int != size_t) and errors (variable leng non-POD arrays). Change-Id: I70b4e784365514303d8954bfcb1f39d7c22c1321
* resolved conflicts for merge of d97303a7 to masterChris Craik2013-09-171-0/+9
|\ | | | | | | Change-Id: I29e2e64e0ec241675762482cbe5c5e9dc58adca6
| * Conservatively estimate geometry boundsChris Craik2013-09-171-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:10761696 Avoids a case where a rect with top coordinate of (e.g.) 0.51f is assumed to not draw in the first row of pixels, which leads to it not being clipped. Since rounding can cause it to render in this first pixel anyway, we very slightly expand geometry bounds. Now, in ambiguous cases, the geometry bounds are expanded so clipping is more likely to happen. Change-Id: I119b7c7720de07bac1634549724ffb63935567fc
* | Replace float arrays with readable namesRomain Guy2013-08-151-18/+18
|/ | | | Change-Id: I32a8be560b60a4ac5cbee2fec4574b2c5df9f825
* Add tessellation path for pointsChris Craik2013-05-141-0/+17
| | | | | | | | | | | | | | | | | | bug:4351353 bug:8185479 Point tessellation is similar to line special case, except that we only tessellate one point (as a circle or rect) and duplicate it across other instances. Additionally: Fixes square caps for AA=false lines Cleanup in CanvasCompare, disabling interpolation on zoomed-in comparison view Change-Id: I0756fcc4b20f77878fed0d8057297c80e82ed9dc
* Implement support for drawBitmapMesh's colors arrayRomain Guy2013-02-131-1/+19
| | | | Change-Id: I3d901f6267c2918771ac30ff55c8d80c3ab5b725
* Add cap tessellation supportChris Craik2013-02-061-19/+0
| | | | | | | | | | | bug:7117155 bug:8114304 Currently used for lines (with and without AA) and arcs with useCenter=false Also removes 0.375, 0.375 offset for AA lines Change-Id: Ic8ace418739344db1e2814edf65253fe7448b0b0
* Line endcaps for AA lines are now antialiased.Chet Haase2011-05-021-0/+19
| | | | | | Also fixed other minor issues with AA and line rendering. Change-Id: Icd4638d27c70e2ee0f28b5d9a2b97d8b29e8ac4d
* Enable anti-aliasing for hw-accelerated linesChet Haase2011-04-211-0/+28
| | | | | | | Draw anti-aliased lines with OpenGL by constructing a quad with a border that fades out (to mimic fragment coverage). Change-Id: Ib81a3e62d663acdf1b46b401ac4aa7ee9855cc7e
* 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
* Generate shaders to cover all possible cases.Romain Guy2010-07-271-8/+0
| | | | | | | | | | 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
* Optimize blending state changes.Romain Guy2010-07-091-0/+5
| | | | Change-Id: I7c22a8aecccb8b5abfcf7243f049a4ef3cf3979a
* Draw n-patches using OpenGL.Romain Guy2010-07-081-0/+49
Currently only tested with title bars and buttons. Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6