John Reck
9eb9f6f8cb
Don't run animators in buildLayer
...
Bug: 17172689
Change-Id: Ib47d589c002543327fa336718440f9f8c95524e0
2014-08-21 11:23:05 -07:00
John Reck
3e8249568c
Implement full View.buildLayer
...
Bug: 17152292
Change-Id: Ia3cc2aadf72fe14517f50762fc634794df51ad5a
2014-08-20 15:54:07 -07:00
Chris Craik
83f75c88a0
Merge "Early reject drawText calls that will not draw" into lmp-dev
2014-08-19 02:43:23 +00:00
Chris Craik
947eabf42d
Early reject drawText calls that will not draw
...
bug:17114102
Prevents high contrast text from drawing invisible text.
Also fixes stroked text bounds calculation.
Change-Id: Iaeff51ead8b7b8ef2a1a0ca8b89598564e0d443f
2014-08-19 14:14:38 -07:00
Chris Craik
2262abbd16
Respect round rect clip when determining op opaqueness
...
bug:17115570
Change-Id: I30184b4678d333b5d222af8b61daa07a5e865cab
2014-08-18 19:55:36 -07:00
Chris Craik
40f67da884
Merge "Fix glyph positions underflow issue" into lmp-dev
2014-08-15 19:21:54 +00:00
Chris Craik
39c5e7cbdf
Fix glyph positions underflow issue
...
bug:16450675
Avoid using unsigned ints in math with negative numbers
Change-Id: Icdfb72451f03380dbf78b3703793869b2cd4e751
2014-08-15 15:46:37 -07:00
Chris Craik
69e5adffb1
Define shadow casting behavior within layers
...
bug:15860114
Savelayers and HW layers both now support shadow casting.
For save layers, the light source should always be correct, for HW
layers, the light source position is set when the layer is created,
and updated when it is resized.
Change-Id: Ie85567dd43c2bb0a0b08fd0bd4db41efa793ac2b
2014-08-15 00:59:44 +00:00
John Reck
21be43e142
Fix hwuitask & RT priorities
...
Bug: 15993695
Change-Id: Ib6f07237cb834e8d10f3074f8fb206d27f91859a
2014-08-15 00:36:11 +00:00
ztenghui
14a4e35208
Bring back the shadow strength tweak
...
bug:16712006
Change-Id: Ifc0ecca139d58140b45d7d227536a53069e1d480
2014-08-13 18:22:42 +00:00
Chris Craik
91a8c7c629
Switch to cos interpolation of shadow alpha
...
bug:16852257
Updates default shadow opacities to compensate.
Also, update variable/constant naming related to vertex alpha.
Change-Id: I9055b4ac3c9ac305ca9d515f21b52d6aa6dc9c5c
2014-08-12 16:00:09 -07:00
Chris Craik
c7d62b777b
Merge "Rework shadow interpolation" into lmp-dev
2014-08-12 19:31:43 +00:00
Chris Craik
bf75945e7a
Rework shadow interpolation
...
bug:16852257
Use pow(alpha, 1.5) to avoid harsh edges on shadow alpha ramps.
Also adjusts shadow constants to compensate.
Change-Id: I5869956d7d292db2a8e496bc320084b6d64c3fb7
2014-08-12 12:44:59 -07:00
Chris Craik
b3cca876c2
Fix ripples projecting to scrolled view
...
bug:16873774
1) Fix projectionReceiveIndex, which could in some cases point at
translate/restore ops.
2) Use background translateX / translateY for projected RenderNodes.
This makes them match background position, and thus properly account
for scroll.
Change-Id: Idbd5700858fd67c5abea0270a1012952fe09ac22
2014-08-12 12:33:01 -07:00
John Reck
a7c2ea20c4
Fix damage for layers for projection receivers
...
Bug: 16880228
Change-Id: I59ab760a21f49cc2cac0d8936b173cff292e6114
2014-08-08 20:24:34 +00:00
Chris Craik
7466986d20
Fix leak of SkPathRefs
...
bug:15939479
SkPath objects owned by DisplayListOps weren't being torn down, and
thus weren't releasing their SkPathRef innards.
Change-Id: I2581e124600a93a399ef3251f456c02ab52839a8
2014-08-08 00:52:54 +00:00
Chris Craik
74cf7e6a25
Cap scales used for tessellation with minimum and maximum
...
bug:15615144
Change-Id: I3e833864af3a7b34e444bd13db34b6c90496a8b6
2014-08-07 22:26:55 +00:00
John Reck
dc0349beba
Add missing null check
...
Bug: 16352267
Change-Id: Ib60baa6d22ec02ba623a297660e2e3ecc7557d0f
2014-08-06 22:28:47 +00:00
Chris Craik
796475006f
Move bitmap transforms out of bitmap ops
...
bug:11359533
This allows us to deduplicate a lot between the two ops, and fixes the
shader coordinate space for the left,top argument drawBitmap to match
software.
Change-Id: I53da05af9ee74c74e9e70b4ab8053190ca220b16
2014-08-06 21:11:31 +00:00
John Reck
cd3a22cfec
Don't start RenderThread to do trimMemory
...
Bug: 16825138
Change-Id: I35f57898b14bc8526c3d93a3003bca6f5a3d7fbe
2014-08-06 20:39:47 +00:00
John Reck
3b52c03f50
clamp & round alpha
...
Bug: 16842521
Change-Id: Ifd93f40b5751746835c9d56bb3c2b5ba700bdccc
2014-08-06 10:19:32 -07:00
Chris Craik
f99f320dc7
Fix large radius RR clipping issue on certain devices
...
bug:16804363
Since dist can be in the 1000s of pixels, and length() may square it
in its current precision, scale the value down significantly first,
since final precision isn't very important.
Change-Id: Id20f7a49d6171355c8e242442c2b5083f746dca3
2014-08-05 22:39:31 +00:00
John Reck
c79eabcd3c
roundOut layer damage
...
Bug: 16734708
Change-Id: I8815b7cf5f74be6deda98aaaf7cde85509def373
2014-08-05 20:54:28 +00:00
Chris Craik
5c09e8ad5e
Merge "Remove scaling bucket hack" into lmp-dev
2014-08-01 01:46:21 +00:00
Chris Craik
a736cd9d35
Remove scaling bucket hack
...
bug:16626221
Fixes glyph cache pressure and double scaling artifacts.
Change-Id: I06cde720db646531b45943283cb4ecb48af8ff5b
2014-08-04 13:18:38 -07:00
Chris Craik
77b5cad3ef
Add outline alpha
...
bug:16140822
bug:16566746
This allows background drawables to alter the opacity of a shadow
being cast with their own alpha values.
Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
2014-07-31 12:29:57 -07:00
Chris Craik
af4d04cab6
Use RoundRect clipping for circle reveal animation
...
bug:16630975
Also, remove inverse clipping feature from reveal animator.
Change-Id: I770a4eb48cd123b0ca0f39d16a0f3eefd1be3653
2014-07-30 17:15:50 +00:00
Chris Craik
62d307c240
Fix behavior of stencil clipping within clearLayerRegions
...
bug:16376960
The draw within clearLayerRegions should never be affected by the
current stencil clip, since it's just ensuring that the content of the
layer is cleared, and not doing real content drawing.
Also, add optional verbose GL event logging
Change-Id: I538b1bc631fc091340b76e12db6af0c219851b57
2014-07-29 17:42:22 +00:00
John Reck
591a824c5d
Merge "Add layer/texture creation tracing" into lmp-dev
2014-07-28 18:28:56 +00:00
John Reck
ec4cefc152
Add layer/texture creation tracing
...
Change-Id: I0af6a36c97a9f5f35d28e0e36539ba8d8011ea7c
2014-07-29 10:04:01 -07:00
Bo Liu
590b8d3601
Merge "Add kModeSync" into lmp-dev
2014-07-24 20:48:02 +00:00
John Reck
09d5cddf67
Add kModeSync
...
Bug: 16526750
Change-Id: I4c087160e80432739321172fd57880846c8de6e0
2014-07-24 10:36:08 -07:00
Chris Craik
00cae4153e
am b5c4634e: am 63582f46: Move ClipBounds to native
...
* commit 'b5c4634e36d5e515852f05722afeb8de053dec62':
Move ClipBounds to native
2014-07-25 21:12:48 +00:00
Chris Craik
a753f4c6cb
Move ClipBounds to native
...
bug:15698973
Also simplifies RenderNode LTRB properties
Change-Id: I09263a697b71d325a46b57cd5250a2b165f251c8
2014-07-25 20:56:50 +00:00
Chris Craik
7780176cd4
am 9cba57c5: am b6163d6d: Revert "Dump RenderThread stack on unresponsive"
...
* commit '9cba57c58ebdfc375bcfced53483fe47e2b5a03e':
Revert "Dump RenderThread stack on unresponsive"
2014-07-25 19:18:37 +00:00
Chris Craik
738ec3aace
Revert "Dump RenderThread stack on unresponsive"
...
bug:16563871
bug:16565900
bug:16555847
bug:16551643
This reverts commit ca66e06b9db6e6c921662886e4b7ddd02ac92280.
Change-Id: I23e8d4eaf828b1b298126ba5f36e4e8e7451706a
2014-07-25 18:26:36 +00:00
John Reck
15a807bb9c
am 4afa4696: am c8f0e9b1: Fix ALL compile warnings
...
* commit '4afa469652dd6baa277b57cb584c08cccaf23c50':
Fix ALL compile warnings
2014-07-24 23:35:38 +00:00
Chris Craik
e6be6fada5
am 27222820: am 1a146fc8: Compute layer bounds over subset of VertexBuffer verts
...
* commit '2722282067f472e30e0642b8374034ac01bca314':
Compute layer bounds over subset of VertexBuffer verts
2014-07-24 23:33:37 +00:00
Chris Craik
19393ccd03
am 394e8703: am 2d3c6c93: Connect shadow style attributes to renderer
...
* commit '394e8703222d59f0de4da82afce423ada12c346f':
Connect shadow style attributes to renderer
2014-07-24 23:32:14 +00:00
John Reck
1aa5d2d706
Fix ALL compile warnings
...
All warnings/errors fixed for GCC & Clang
Change-Id: I2ece3a136a5ae97a9acc3069537ed986238b5fd3
2014-07-24 14:28:08 -07:00
John Reck
a728570a9a
am dc7f7045: am ca66e06b: Dump RenderThread stack on unresponsive
...
* commit 'dc7f7045f66733dbd3bf46934ddd6dec5b12a64a':
Dump RenderThread stack on unresponsive
2014-07-24 19:45:56 +00:00
Chris Craik
9a89bc6524
Compute layer bounds over subset of VertexBuffer verts
...
bug:15538815
Change-Id: I0dbb54f656a6ae99a87c5734761107e1c2351b65
2014-07-24 17:49:23 +00:00
Chris Craik
058fc64001
Connect shadow style attributes to renderer
...
bug:15859361
Moves lighting info out of StatefulBaseRenderer, since it's not useful
at record time, and only used by OGLR.
Change-Id: I7ab065d02d9304afad1dc4c48597a7a621366f8e
2014-07-24 16:41:13 +00:00
John Reck
73b7a4db41
Dump RenderThread stack on unresponsive
...
Bug: 16408405
Change-Id: I4ba4836fd1451fb8ba77c34cdb843d3cb4217bb8
2014-07-23 22:28:44 +00:00
Chris Craik
99bc64e721
am 97d572ec: am f2ecf428: Merge "Build layer damage bounds for shadows" into lmp-dev
...
* commit '97d572ecb4804fc764a2bc99d0a0f6dddfe6fbd8':
Build layer damage bounds for shadows
2014-07-23 18:19:58 +00:00
Chris Craik
35763b1c0b
am 1f9b1c74: am d93bb9e1: Merge "Make setter methods on Outline call setEmpty() based on params" into lmp-dev
...
* commit '1f9b1c74aad278704920e8181c31229dd05bb49b':
Make setter methods on Outline call setEmpty() based on params
2014-07-23 00:37:07 +00:00
Chris Craik
0645128b80
Make setter methods on Outline call setEmpty() based on params
...
bug:16142564
Additionally, better define behavior around null outline providers:
A view with an empty outline, and setClipToOutline=true will not be
rendered, though one with a null outline provider
(and thus no outline) will be.
Change-Id: Ic9549841b107b2eb51b417c66058a0cd69dd89eb
2014-07-22 15:15:11 -07:00
Chris Craik
2923df5382
am 48242d80: am 50a2d633: Merge "[HWUI] Fix invisible views are still shown in popup window"
...
* commit '48242d801c8719f458a615b14b31760ae590006e':
[HWUI] Fix invisible views are still shown in popup window
2014-07-22 19:15:43 +00:00
Chris Craik
50a2d6339c
Merge "[HWUI] Fix invisible views are still shown in popup window"
2014-07-22 16:35:00 +00:00
Chris Craik
5eac9e114e
Merge "Build layer damage bounds for shadows" into lmp-dev
2014-07-22 16:29:55 +00:00