John Reck
dff9957cc2
Free prefetched layers on TRIM_MEMORY
...
Bug: 17208461
Change-Id: I831c10d29d5920274b90e11a67d6cd106972a058
2014-08-29 09:59:43 -07:00
John Reck
998a6d8189
Track buildLayer calls, destroy if unused
...
Bug: 17208461
Change-Id: Ibdb104a493285d77a6891c5e74e38a52c7014da9
2014-08-28 15:55:26 -07:00
John Reck
4c5a27b5f6
Merge "Animator stuff" into lmp-dev
2014-08-28 01:38:58 +00:00
John Reck
119907cd25
Animator stuff
...
Bug: 17228458
Change-Id: Id884a429a512f9cd2be0ed16dbd0f10e92b4440d
2014-08-27 17:44:25 -07:00
Chris Craik
1d47742333
Crash instead of leaking layers/textures between GL contexts
...
bug:17208461
Change-Id: I4d58f301cf0f5e8145e808a5d6ade4de7801970b
2014-08-26 17:30:15 -07:00
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
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
John Reck
cd3a22cfec
Don't start RenderThread to do trimMemory
...
Bug: 16825138
Change-Id: I35f57898b14bc8526c3d93a3003bca6f5a3d7fbe
2014-08-06 20:39:47 +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
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
John Reck
5cdb8f998c
Fix logging
...
Bug: 16357287
Change-Id: Ic14e32c941e42ab1f1ed51ff8ed7185979e57a55
2014-07-17 18:12:01 +00:00
John Reck
0a97330b98
Fix root RenderNode damage calculation
...
Bug: 15888445
Change-Id: I281ec9271c9889673dcdfcb6d31e341a7b47b7de
2014-07-16 13:55:14 -07:00
John Reck
dcba6725e8
Fix layers lifecycle issues
...
Bug: 16118540
Fix an issue where we could have a reference to a Layer after
the GL context was destroyed
Change-Id: I7bfd909d735ca6b942ebe188fc10099422eb6d95
2014-07-08 14:14:55 -07:00
John Reck
3c2b7fa8c5
Add missing requireGlContext
...
Change-Id: I7100e5e9986f502f66a23ecea07a6057522c43ac
2014-07-07 18:05:00 +00:00
John Reck
f47a594f52
Fix onTrimMemory for HardwareRenderer
...
Also fixes detachFunctor possibly drawing after return
Bug: 15189843
Bug: 15990672
Change-Id: I64c48cb674c461a8eeaba407b697e09f72c98ce3
2014-06-30 16:36:26 -07:00
John Reck
918ad523b2
More cleanups
...
Change-Id: Id5967944b949a2aec57e4fe9fdcdc04c11b8c35a
2014-06-27 22:34:16 +00:00
John Reck
68bfe0a37a
Animator refactoring & fixes
...
Tweaks animators to have less unnecessary refcounting
Pull animator management out into seperate class
More control to tweak animator lifecycle, such as doing
Java-side handling of start delay by attaching but not
starting the animator
Change-Id: I4ff8207580ca11fb38f45ef0007b406e0097281c
2014-06-26 10:45:43 -07:00
John Reck
cd028f336e
Fix contants; RT-enable WebView pt2
...
Bug: 15838537
* Fix kSync_UIRedrawRequired constant value (woops)
* Tell CanvasContext that WebView is now rt-safe
Change-Id: Idf15cf21115c2ca24b8ccd00025e8502864cd87c
2014-06-24 08:44:29 -07:00
John Reck
6b39324d77
Merge "No-fail invokeFunctor"
2014-06-23 21:44:43 +00:00
John Reck
3b20251a35
No-fail invokeFunctor
...
Bug: 15513308
Bug: 15449247
Change-Id: I13a29f9c8d4975cdda6dcb33b6332c2555ff0f7c
2014-06-23 15:26:49 -07:00
Bo Liu
61606cec5c
Merge "Enable asynchronous RenderThread for WebView"
2014-06-20 21:00:34 +00:00
Bo Liu
826b564486
Enable asynchronous RenderThread for WebView
...
BUG: 12179257
Change-Id: Ib7358dc84a0a58020d178d10b324b9631848c06d
2014-06-23 11:26:03 -07:00
Chris Craik
a7090e0cfd
Update 'DisplayList' vs 'RenderNode' naming in several places
...
Change-Id: I635c6627d098b661fb9b0ba1bd42fa6d7277d287
2014-06-23 09:57:07 -07:00
Chris Craik
734df4b427
Interrupt canvas before invoke
...
Change-Id: I5b818958f6255c594339bd10d9efa99e9e2c00d4
2014-06-17 10:15:46 -07:00
John Reck
816f71b7e0
Merge "Move LayerType to RenderNode"
2014-06-12 05:34:42 +00:00
John Reck
25fbb3fa11
Move LayerType to RenderNode
...
Change-Id: Icb79a5015cb0362b1f3a66d09007450730135a97
2014-06-12 19:25:33 -07:00
Mark Salyzyn
546f353e7f
hwui: 64-bit compile issue
...
Change-Id: Ic3e3dbc6cde4bc58b23a8ab267b0868f370ad149
2014-06-10 12:29:14 -07:00
John Reck
e4267ea4f2
Even FASTER damage calculations!
...
* Now with more native!
* Less matrix math thanks to bulk-property-update support!
* Zero JNI on the View.damageInParent() path!
* Fully aware of RT-driven animators!
* Likely full of new and exciting bugs!
* But it also fixes at least 1 existing invalidate bug!
Change-Id: Ie0773f85a60850ff2668370c58defef2e8aa079f
2014-06-04 12:21:26 -07:00
John Reck
d72e0a339b
Re-jigger layers
...
Bug: 15185239
Bug: 15238382
Make DeferredLayerUpdater ref counted so that
HardwareLayer:finalizer() works non-crashily on
leaked layers
Give DeferredLayerUpdater the ability to have a layer destroyer
set so that leaked layers can still be recycled on the
RenderThread
Order layer updates based off of pushLayerUpdate() calls to fix
issue with nested layers
Change-Id: I4449cee607f7e5126e02fed7464cf48038e3dfdf
2014-05-30 12:19:33 -07:00
John Reck
aee470c023
Merge "Enable debug stuffs" into lmp-preview-dev
2014-05-29 22:23:41 +00:00
John Reck
fe5e7b7346
Enable debug stuffs
...
Bug: 14596762
* dumpsys gfxinfo implemented
* profile GPU visual_bars implemented
Change-Id: Icb948a9d5af5989b5615504d0d76ade64b93ef5b
2014-05-29 15:00:29 -07:00
John Reck
c8affe0e1b
Re-enable atlas
...
Bug: 14590563
Change-Id: I04ed5bf1b2654dab4a65c1e43faaeba32459870f
2014-05-29 14:50:37 -07:00
John Reck
e1628b7c6f
Implement FlushCaches TODO
...
Change-Id: Id05429e98ffe0858275b32c41fb215c1d8d930b2
2014-05-23 15:40:14 -07:00
John Reck
a5dda645da
Bag of scheduling tweaks
...
Bug: 15118640
* Prevent over-stuffing the queue by dropping frames
* Prevent double-drawing in one pulse by RT by deferring
vsync registration until post-draw so that it catches
the next vsync pulse instead of the current one
* Bias vsync race condition towards the UI thread
* Fix queueDelay to actually work
Change-Id: Ibf584258bd93ebcbba058bd976dc8b307f1c6155
2014-05-23 12:56:38 -07:00
Chris Craik
797b95b26b
Define light position (using new lighting spec) in Java
...
Also updates the relative shadow strengths.
Change-Id: I6cac7275d38df98aea9f0dda463cd7207102986a
2014-05-21 13:50:29 -07:00
John Reck
cdfeef6624
Disable texture atlas
...
Bug: 14952384
Change-Id: If38b3e4c08c2c3dd9c00ae9e6e8c10e208e737d1
2014-05-14 23:59:01 +00:00
John Reck
66f0be65a1
Wire up texture atlas
...
Bug: 14590563
Change-Id: I2dffbc089dc801f5fb2d1c8fd38e1c71d160e110
2014-05-13 14:54:42 -07:00
John Reck
ef27453cf7
Merge "Cleanup attachFunctor"
2014-05-07 21:48:20 +00:00
John Reck
832b151465
Cleanup attachFunctor
...
Bug: 13961296
Change-Id: Id48d11bfcc234afd1fd7e4fdd409a50e7208c81d
2014-05-07 14:39:44 -07:00
John Reck
b6d9211d31
Merge "Implement TODO(romainguy)"
2014-05-07 21:24:25 +00:00
John Reck
63a0667325
Implement TODO(romainguy)
...
Bug: 14277445
Change-Id: Id52d6f7fcc023000adcc440bd4da67d9a673536b
2014-05-07 13:45:54 -07:00
John Reck
368cdd8526
Don't try to draw if there's no canvas or surface
...
Bug: 14616376
doFrame() can happen after the canvas or surface is destroyed,
handle it gracefully
Change-Id: Ibbbbdbfa77fa2134bd2abc215ca1a0886d706969
2014-05-07 13:19:28 -07:00
John Reck
e4280baaa7
Implement loadSystemProperties
...
Bug: 14087580
Change-Id: I7153f38c70b554a78c56a0e794da929fc401ee7a
2014-05-05 16:39:37 -07:00
John Reck
f9be77940e
Make RenderNodeAnimator and WebView play nice
...
Change-Id: Ifaefcf510b2d377663fc86f60608d6ec9be8329a
2014-05-05 12:35:30 -07:00
John Reck
18f16e6fba
TIME LORD!
...
Bug: 14444180
Change-Id: I68bec3807c4d1c88d5af1aec2fe6907d60b5f2f3
2014-05-05 10:57:04 -07:00
John Reck
52244fff29
Add CanvasProperty for drawCircle
...
Change-Id: Icbcc030f5033d2094e567d7c519b9d672f2aac1c
2014-05-02 13:43:46 -07:00
John Reck
e45b1fd03b
RenderThread animator support
...
Change-Id: Icf29098edfdaf7ed550bbe9d49e9eaefb4167084
2014-04-29 10:42:11 -07:00