summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderstate
Commit message (Collapse)AuthorAgeFilesLines
* libhwui: fix texture memory leakDohyun Lee2016-01-231-0/+4
| | | | | | | | | | | When there is not enough space and we cannot delete any Texture in TextureCache to secure space, a new Texture is created over and over again for the same SkBitmap and there is the case that it is not deleted. This patch avoids such cases. Change-Id: Ic5353995e6d0716c31fe3bb49c60ec1a71574643 Signed-off-by: Dohyun Lee <leedhyun11@gmail.com>
* Fix crash in kModeProcessNoContextJohn Reck2015-08-041-3/+9
| | | | | Bug: 22931143 Change-Id: I9897a28b1edd006aee67ae2343874ad92bbd15a0
* Fix stencil mask usage in HWUIChris Craik2015-07-301-8/+14
| | | | | | | | | | bug:21588246 Ensure we always set the mask before clearing, and removes some unneeded optimizations around mask usage in debug (overdraw) mode. Change-Id: I71ed06c16f8d9f158953d5aa160098514f0f7f00
* Fix unsafety in SkiaShader storage, and texture unit accountingChris Craik2015-07-132-3/+7
| | | | | | | | | | | | | | | | bug:22390304 Fixes two issues: 1) The max texture unit wasn't large enough to handle the most complex ComposeShader case (1 for draw primitive, 2 for gradient shader, 1 for bitmap shader). 2) If a shader isn't supported by SkiaShader::store, the shader data needs to be explicitly disabled, so we won't read uninitilized data from it when trying to read shader information out. Change-Id: I29ee7b7c1e07f67db88c1707bdc857daa305e713
* Handle shader matrix correctly when ignoring canvas transformChris Craik2015-06-021-8/+8
| | | | | | | | | | | | | bug:20063841 Restores old SkShader matrix behavior from before the Glop refactor. Many drawing operations draw without sending the canvas transform to the GL shader. In such cases, we need to adapt the matrix sent to the SkShader logic to invert the canvas transform that's built into the mesh. Change-Id: I42b6f59df36ce46436322b95bf9ad2140795ee58
* Merge "Fix GL texture binding for TextureViews" into mnc-devChris Craik2015-05-271-2/+2
|\
| * Fix GL texture binding for TextureViewsChris Craik2015-05-271-2/+2
| | | | | | | | | | | | | | | | | | bug:21431334 Should be explicitly passing target through, to ensure GL_EXTERNAL_OES textures are bound correctly. Change-Id: I997672ae292ea7fc016c02a59a3c7c8358ecfe0b
* | Eliminate requireGlContextJohn Reck2015-05-201-1/+2
|/ | | | | | Bug: 20297820 Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097
* Cleanup propertiesChris Craik2015-05-051-1/+1
| | | | | | | | | | | | bug:19967854 Separate properties from Caches, into static, RenderThread-only class. Also rewrites the means for java to set properties to correctly handle threading, and adds an override for profile bars so that SysUi doesn't clutter the screen with them. Change-Id: I6e21a96065f52b9ecc49d1a126244804ba106fa9
* Require minimum 4 bit stencil for layers.Chris Craik2015-04-292-8/+10
| | | | | bug:19270131 Change-Id: I81367179d268e7c1642259c456c1f3d0018f6c0d
* Merge "Glop based composeLayerRegion/Rect"Chris Craik2015-03-103-10/+16
|\
| * Glop based composeLayerRegion/RectChris Craik2015-03-093-10/+16
| | | | | | | | Change-Id: I69440cabca84948e8aaead9479d616ebc2496517
* | Rewrite glop texture assertsChris Craik2015-03-091-6/+6
|/ | | | | | | | bug:19641517 Also switch Glop VertexAttribFlags to use int for group of flags. Change-Id: Ib7b1934197a62206a55baa6ab484ac59f5bec816
* Glop TextureLayer supportChris Craik2015-02-271-6/+12
| | | | Change-Id: I348a926bd4a2f47be9fdbe74058c0aa2f8dc6276
* Glop mesh reorg, support for drawBitmapMeshChris Craik2015-02-262-45/+46
| | | | Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
* Glop layer mesh renderingChris Craik2015-02-193-10/+15
| | | | Change-Id: I2d902819d5d77f496b67d4d25a298782903e410d
* Glop SkiaShader supportChris Craik2015-02-171-1/+4
| | | | Change-Id: I894a0b62701bd02367ab970813e4c332147351a2
* Glop path texture supportChris Craik2015-02-121-2/+6
| | | | Change-Id: I505eb05991ca4c9b2e01e49988b8f962fad51462
* Glop Bitmap and RoundRect clipping supportChris Craik2015-02-122-18/+44
| | | | Change-Id: I4577546a5d2e5f084cc03f39a89db9231b8111ee
* Fix Glop vertex alpha blendingChris Craik2015-02-091-1/+5
| | | | | | Need to force blending if vertices have alpha attribute Change-Id: I821792db6b613b4d0243cf9c7a045cba014acdc1
* Glop support for indexed quadsChris Craik2015-02-094-35/+47
| | | | | bug:19014311 Change-Id: If35a873421b41cc4508b0d8ac1b4d900c9bb3717
* Merge "Glop ColorFilter & VertexBuffer support, initial enable"Chris Craik2015-02-0610-67/+97
|\
| * Glop ColorFilter & VertexBuffer support, initial enableChris Craik2015-02-0610-67/+97
| | | | | | | | | | | | | | Enables Glop rendering for supported Rects and VertexBuffers Also removes unused Query object Change-Id: Ibe227bc362685a153159f75077664f0947764e06
* | Merge "GlopBuilder, and test app refactor"Chris Craik2015-02-055-30/+47
|\ \ | |/
| * GlopBuilder, and test app refactorChris Craik2015-02-045-30/+47
| | | | | | | | Change-Id: I2cd299ccf178007fd5f83bab6c3448f03aec7843
* | Merge "Refactoring of Program ownership/lifecycle, and WIP Glop rendering path"Chris Craik2015-02-034-20/+96
|\ \ | |/
| * Refactoring of Program ownership/lifecycle, and WIP Glop rendering pathChris Craik2015-02-024-20/+96
| | | | | | | | Change-Id: I2549032790bddbc048b0bccc224ed8f386b4517c
* | Merge "Refactor blending and texture gl state"Chris Craik2015-01-306-19/+376
|\ \ | |/
| * Refactor blending and texture gl stateChris Craik2015-01-306-19/+376
| | | | | | | | Change-Id: Ia6b3c8b2afd3dfcee7f3ce401d846b789612054a
* | Fix double create of CachesChris Craik2015-01-301-1/+3
|/ | | | | bug:19208182 Change-Id: I91ac591cecc207da1b102013ca4985dd075cca80
* resolved conflicts for merge of fe5ac4fc to masterJohn Reck2015-01-292-3/+9
| | | | Change-Id: I6c0cc82db14b56297586469f940e408c0e218b3b
* Move more GL state management to RenderState and its directoryChris Craik2015-01-2810-19/+699
| | | | Change-Id: Ic68584e1c08dc64be2ad43450cb6caa1de834fdc
* Move scissor state to RenderStateChris Craik2015-01-274-0/+428
Change-Id: I1227a3886fb24e4d9fad79fca469794f06cfb15e