summaryrefslogtreecommitdiff
path: root/libs/hwui/Animator.cpp
AgeCommit message (Collapse)Author
2017-11-03Format the world (or just HWUI)John Reck
Test: No code changes, just ran through clang-format Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
2017-01-11Fix dirty Z propJohn Reck
Test: none Change-Id: I886d50e58d6f404c6d19860a3032ca1b2854e073
2016-08-04Remove animation value change from push stagingDoris Liu
This CL ensures that animation values are only updated during animation pulses. This CL also includes the revert of https://googleplex-android-review.git.corp.google.com/#/c/1285913/ BUG: 30659748 Change-Id: Iadc84462dc61157efd3c18a23767bba9faf00f6e
2016-06-09Handle hidden RT VectorDrawable animatorsDoris Liu
This CL changes the target of VD specific animators to VectorDrawable, instead of RenderNode. The benefit of doing so is that animators can now detect whether the animation is meaningful by checking whether their VD target is in the display list. If not, that means the VD is not drawing for the current frame, in which case we can be smarter and more power efficient by removing the animator from the list and posting a delayed onFinished listener callback. By setting VD as the animation target, when an ImageView decides to update its drawable from one AVD to something else, we'll be able to detect that the previous AVD is no longer in the display list, and stop providing animation pulse to the stale AVD, which is something we couldn't do previously. This change also handles the case where one AVD instance could be drawn in two different views. Bug: 27441375 Change-Id: Iaad1ed09cfd526276b95db0dd695275c28e074e8
2016-04-12rm log spamDoris Liu
Bug: 27385133 Change-Id: Ia97fbba61da691e2fde91ed1a857e0478046f8c0
2016-02-19Ensure animator's interpolator is setDoris Liu
Animator's play state can go from NotStarted to Finished directly in the case of calling start() and end() within one frame. Previously we only set animator's interpolator when the animator is transitioning to Running state. So when Running state is skipped, the interpolator is left unset. Bug: 27224373 Change-Id: I5a53106fe1aae38ccaf1df8debd553be3bc56133
2016-02-19Revert "Revert "Check RenderNode's owning view before attaching animators""Doris Liu
This reverts commit eb40178af3b7c8d925eaf6c1aa0bef739c8ea47e. Change-Id: I6838ecb35b50847746ee66ac204f14eb5f579b91
2016-02-19VectorDrawable native rendering - Step 5 of MANYDoris Liu
This is reverting the revert of what reverts the revert of the original implementation. Fourth revert is a charm! This reverts commit df7fdb1e0bdb5c289bbc08047e5c710185503309. Change-Id: I6fc3a5accfd8b79c3da31bbc101ad9e9b4d6e7dd
2016-02-18Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""Doris Liu
This reverts commit 0d20a275a5baf8579c8b9111cf2ce6615874a6b6. Change-Id: I97c782f1164a5d39ab74dc098cca71d9e1b30cd8
2016-02-12Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""Doris Liu
This reverts commit e03ef25a3e44ef5d495e366c30b9b5b69fc58194. Change-Id: I9c2e1c891667451a3ee668e414bf337ad67279ab
2016-02-11Revert "VectorDrawable native rendering - Step 5 of MANY"John Reck
Bug: 27136799 This reverts commit 18bdf443e371e9f293439b4ff92cc79abaa422e5. Change-Id: I825b061eec2a591f2d18119ba64494624b9ad4f2
2016-02-11VectorDrawable native rendering - Step 5 of MANYDoris Liu
Implemented reset() (public API for AVD) and reverse() (internal API that needs to be supported) Change-Id: Ife1650049f271cad1347943151a5800c40c20aa2
2016-02-04Revert "Revert "VectorDrawable native rendering - Step 4 of MANY""Doris Liu
This reverts commit 5a11e8d0ba21624025b89ac63bbd18befa55be0e. Change-Id: I7a48b59c4f930dad65ddc8590c25a12636244ea2
2016-02-04Revert "VectorDrawable native rendering - Step 4 of MANY"Doris Liu
b/26949340 and b/26975469, b/26975079 as well This reverts commit f276acd98457bcaabc9e79a17a736b3b484f005e. Change-Id: I4b55177daf0d289bc03604c71fd4bf579f65073a
2016-02-02VectorDrawable native rendering - Step 4 of MANYDoris Liu
This CL runs VectorDrawable animation on RenderThread. The changes in this CL include: - Convert all the animators in AnimatorSet for AVD into a set of RenderNodeAnimators. - Hook up the new animators with RenderThread - Add drawOp in RecordingCanvas for drawing VD so that during the animation on RenderThread, all the property changes on VD can be reflected on the screen. TODO: - Implement reverse and reset for AVD. Change-Id: I2df1d754f2db0ad098d9c15dde4bb2bdfafc2315
2015-08-21Switch several enums to enum classesChris Craik
Change-Id: I00ecd0b61657196b51704f70ca31a9d1c1ac254e
2015-01-05Add overrides and switch to nullptr keyword for all filesChris Craik
Adds remaining missing overrides and nullptr usages, missed due to an extreme failure in tool usage. Change-Id: I56abd72975a3999ad13330003c348db40f59aebf
2014-12-23Cleanup various clang warnings, use unique_ptrs in several placesChris Craik
Change-Id: I347904b25e51fcc7de14b1e72f1acd0f6ba26f3f
2014-11-22Revert "resolved conflicts for merge of 220c3f4f to master"Andreas Gampe
Reverted as hwui doesn't agree. This reverts commit 8a902d9f24e83c87b054adb5836b4a5b8a257be9. Change-Id: I109e7b02bee2921e2155ded6df36f52e6f574b5a
2014-11-21resolved conflicts for merge of 220c3f4f to masterAndreas Gampe
Change-Id: I37ecce8fddecdff82b0eace16f1ee75152f7171e
2014-11-21Frameworks/base: Unused parameters in hwuiAndreas Gampe
Remove Clang cutout for unused parameters. Fix warnings. Remove Clang cutout for deprecated Skia function usage. Has been fixed in the L push. Change-Id: I7ea073ff67127cc1e14e798b655e2c50615fe8e7
2014-10-15Clean up physical couplingTom Hudson
Narrow the use of #include directives in hwui, replacing with forward declarations where straightforward. Speeds compiles; doesn't do any restructuring of code. Change-Id: Icac2baffb5896f55d8c6718e9bd9d4bfa02d3ca0
2014-09-12Correctly initialize animator asynchronousityChris Craik
bug:17483792 Change-Id: Icb6b6e6318d4c79ee94228806cb60b275424b9c9
2014-09-03Fix some wrong-thread issues around animator managementJohn Reck
Bug: 17372309 Fixes a case where UI thread and RT thread both used the same method which wasn't safe for either of them. Adds additional assertions & logging in unusual circumstances to try and track down where the issue is occuring from. Change-Id: I93d31a6fd0c5927259b67bdf96a475944226eee6
2014-08-29Listener callbacks ordering fixupsJohn Reck
Bug: 17228458 Bug: 17317816 Ensure that onStart is called prior to onCancel/onFinished if those happen prior to the UI-thread handled start delay. Ensure that onFinished is called if cancel/end is called Change-Id: I23c16ea1c4f925d59d41ec5281d62dfc0c38595b
2014-08-27Animator stuffJohn Reck
Bug: 17228458 Change-Id: Id884a429a512f9cd2be0ed16dbd0f10e92b4440d
2014-08-15Define shadow casting behavior within layersChris Craik
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-08Fix damage for layers for projection receiversJohn Reck
Bug: 16880228 Change-Id: I59ab760a21f49cc2cac0d8936b173cff292e6114
2014-07-30Use RoundRect clipping for circle reveal animationChris Craik
bug:16630975 Also, remove inverse clipping feature from reveal animator. Change-Id: I770a4eb48cd123b0ca0f39d16a0f3eefd1be3653
2014-07-18Add RT-enabled reveal animatorJohn Reck
Bug: 16161431 Also re-writes RevealAnimator to avoid using any listeners internally, removing the logic around shadowing the update listeners. Change-Id: I6ed8126398eed971a87f20bccb7584c9acafbb6c
2014-07-07Fix VPA.cancel()John Reck
Bug: 15978905 Need to make sure we re-sync the UI properties on animator cancel, also don't animate for 1 frame after cancel() is called Change-Id: Ib660c0fb195b9f02bd795d03d43ea67bffebb499
2014-07-01Fixes to startDelayJohn Reck
Bug: 15991758 Don't update the UI thread with final value until after startDelay Change-Id: Ie8bffb5a3ace353ec1d82943a4efcbd01c42c28f
2014-06-26Animator refactoring & fixesJohn Reck
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-20Re-enable ViewPropAnimRTJohn Reck
Change-Id: I2f30547c4e2212747c479760dff4f3f901d1eaf3
2014-06-02Add setStartValue to RNAJohn Reck
Bug: 15198607 Should be good-enough for Ripples to use for pseudo-chaining support. Change-Id: Ia8666928ccb69ae401cb583751632a52bd928b63
2014-05-16Update ripple behavior, use render thread animationAlan Viverette
Change-Id: Ib6bc1e08b05d29606f452961963d58b8fc866746
2014-05-15Animator start value...John Reck
Change-Id: Ifd35ed95a28c625086d7fa97764fe63ab4a997f1
2014-05-13Clamp to uint8 for alphaJohn Reck
Change-Id: Id3e51671297bfb879969ad2fe7a5741dd4cf4c29
2014-05-02Add CanvasProperty for drawCircleJohn Reck
Change-Id: Icbcc030f5033d2094e567d7c519b9d672f2aac1c
2014-04-29RenderThread animator supportJohn Reck
Change-Id: Icf29098edfdaf7ed550bbe9d49e9eaefb4167084