John Reck
95cd24bb9d
Fix crash in kModeProcessNoContext
...
Bug: 22931143
Change-Id: I9897a28b1edd006aee67ae2343874ad92bbd15a0
2015-08-04 18:19:11 +00:00
Chris Craik
fa51a0e1ce
Fix stencil mask usage in HWUI
...
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
2015-07-30 11:06:53 -07:00
Chris Craik
e310f83d59
Fix unsafety in SkiaShader storage, and texture unit accounting
...
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
2015-07-13 13:34:07 -07:00
Chris Craik
53e51e4aa9
Handle shader matrix correctly when ignoring canvas transform
...
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
2015-06-02 16:28:39 -07:00
Chris Craik
1e6d566c5f
Merge "Fix GL texture binding for TextureViews" into mnc-dev
2015-05-27 19:22:44 +00:00
Chris Craik
5f1356c80a
Fix GL texture binding for TextureViews
...
bug:21431334
Should be explicitly passing target through, to ensure
GL_EXTERNAL_OES textures are bound correctly.
Change-Id: I997672ae292ea7fc016c02a59a3c7c8358ecfe0b
2015-05-27 11:06:22 -07:00
John Reck
d7db4d7672
Eliminate requireGlContext
...
Bug: 20297820
Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097
2015-05-20 11:24:57 -07:00
Chris Craik
2507c34d91
Cleanup properties
...
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
2015-05-05 10:36:09 -07:00
Chris Craik
e145013153
Require minimum 4 bit stencil for layers.
...
bug:19270131
Change-Id: I81367179d268e7c1642259c456c1f3d0018f6c0d
2015-04-29 13:04:02 -07:00
Chris Craik
edacf22ca1
Merge "Glop based composeLayerRegion/Rect"
2015-03-10 16:29:14 +00:00
Chris Craik
182952f5ee
Glop based composeLayerRegion/Rect
...
Change-Id: I69440cabca84948e8aaead9479d616ebc2496517
2015-03-09 18:06:32 -07:00
Chris Craik
eb911c2b0e
Rewrite glop texture asserts
...
bug:19641517
Also switch Glop VertexAttribFlags to use int for group of flags.
Change-Id: Ib7b1934197a62206a55baa6ab484ac59f5bec816
2015-03-09 13:36:35 -07:00
Chris Craik
26bf34200e
Glop TextureLayer support
...
Change-Id: I348a926bd4a2f47be9fdbe74058c0aa2f8dc6276
2015-02-27 10:50:12 -08:00
Chris Craik
ef2507439c
Glop mesh reorg, support for drawBitmapMesh
...
Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
2015-02-26 10:56:07 -08:00
Chris Craik
f27133df2d
Glop layer mesh rendering
...
Change-Id: I2d902819d5d77f496b67d4d25a298782903e410d
2015-02-19 18:06:05 -08:00
Chris Craik
922d3a7f6f
Glop SkiaShader support
...
Change-Id: I894a0b62701bd02367ab970813e4c332147351a2
2015-02-17 15:45:46 -08:00
Chris Craik
30036092b4
Glop path texture support
...
Change-Id: I505eb05991ca4c9b2e01e49988b8f962fad51462
2015-02-12 16:16:57 -08:00
Chris Craik
0519c810a5
Glop Bitmap and RoundRect clipping support
...
Change-Id: I4577546a5d2e5f084cc03f39a89db9231b8111ee
2015-02-12 12:30:59 -08:00
Chris Craik
08fa43fdeb
Fix Glop vertex alpha blending
...
Need to force blending if vertices have alpha attribute
Change-Id: I821792db6b613b4d0243cf9c7a045cba014acdc1
2015-02-09 19:08:02 -08:00
Chris Craik
2ab95d780b
Glop support for indexed quads
...
bug:19014311
Change-Id: If35a873421b41cc4508b0d8ac1b4d900c9bb3717
2015-02-09 11:04:31 -08:00
Chris Craik
f7ccbfbd98
Merge "Glop ColorFilter & VertexBuffer support, initial enable"
2015-02-06 23:06:44 +00:00
Chris Craik
117bdbcfa3
Glop ColorFilter & VertexBuffer support, initial enable
...
Enables Glop rendering for supported Rects and VertexBuffers
Also removes unused Query object
Change-Id: Ibe227bc362685a153159f75077664f0947764e06
2015-02-06 13:42:25 -08:00
Chris Craik
ecad24b49d
Merge "GlopBuilder, and test app refactor"
2015-02-05 00:25:04 +00:00
Chris Craik
031888744e
GlopBuilder, and test app refactor
...
Change-Id: I2cd299ccf178007fd5f83bab6c3448f03aec7843
2015-02-04 15:57:59 -08:00
Chris Craik
9dfd7bd520
Merge "Refactoring of Program ownership/lifecycle, and WIP Glop rendering path"
2015-02-03 00:00:58 +00:00
Chris Craik
6c15ffa196
Refactoring of Program ownership/lifecycle, and WIP Glop rendering path
...
Change-Id: I2549032790bddbc048b0bccc224ed8f386b4517c
2015-02-02 14:08:57 -08:00
Chris Craik
d7328ae790
Merge "Refactor blending and texture gl state"
2015-01-30 18:53:01 +00:00
Chris Craik
44eb2c0086
Refactor blending and texture gl state
...
Change-Id: Ia6b3c8b2afd3dfcee7f3ce401d846b789612054a
2015-01-30 10:49:05 -08:00
Chris Craik
ff5c8e8097
Fix double create of Caches
...
bug:19208182
Change-Id: I91ac591cecc207da1b102013ca4985dd075cca80
2015-01-30 09:46:18 -08:00
John Reck
49bc4acfad
resolved conflicts for merge of fe5ac4fc to master
...
Change-Id: I6c0cc82db14b56297586469f940e408c0e218b3b
2015-01-29 12:53:38 -08:00
Chris Craik
96a5c4c7ba
Move more GL state management to RenderState and its directory
...
Change-Id: Ic68584e1c08dc64be2ad43450cb6caa1de834fdc
2015-01-28 16:32:39 -08:00
Chris Craik
65fe5eeb19
Move scissor state to RenderState
...
Change-Id: I1227a3886fb24e4d9fad79fca469794f06cfb15e
2015-01-27 17:12:39 -08:00