diff options
author | John Reck <jreck@google.com> | 2014-06-24 15:34:58 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-06-26 10:45:43 -0700 |
commit | 68bfe0a37a0dcef52abd81688d8520c5d16e1a85 (patch) | |
tree | b67e0671dba8221a16fcf880daeaf1e271499e9f /libs/hwui/TreeInfo.h | |
parent | 6507f2e03a90244e08fb62f9b55653ba3230d0b7 (diff) |
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
Diffstat (limited to 'libs/hwui/TreeInfo.h')
-rw-r--r-- | libs/hwui/TreeInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/hwui/TreeInfo.h b/libs/hwui/TreeInfo.h index 249e52562dd0..083100e8b183 100644 --- a/libs/hwui/TreeInfo.h +++ b/libs/hwui/TreeInfo.h @@ -79,6 +79,17 @@ public: , errorHandler(NULL) {} + explicit TreeInfo(TraversalMode mode, const TreeInfo& clone) + : mode(mode) + , frameTimeMs(clone.frameTimeMs) + , animationHook(clone.animationHook) + , prepareTextures(mode == MODE_FULL) + , damageAccumulator(clone.damageAccumulator) + , renderState(clone.renderState) + , renderer(clone.renderer) + , errorHandler(clone.errorHandler) + {} + const TraversalMode mode; nsecs_t frameTimeMs; AnimationHook* animationHook; |