diff options
author | Florin Malita <fmalita@chromium.org> | 2018-01-31 18:35:05 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-01 00:28:32 +0000 |
commit | 22c528dccef2716d04bb2ee8906cb5ac17c5b09e (patch) | |
tree | 12d03cb99a5d9894c4609733869ef4a56828f96e /tools/viewer/SkottieSlide.h | |
parent | e2b300adcc1589e7008ab93c361f1d6b9409c411 (diff) |
[skottie] Convert SkottieSlide2 to SkSceneGraph animators.
Instead of dispatching ticks explicitly, bind Animations to the Scene
using ForwardingAnimator adaptors.
TBR=
Change-Id: I9faffed5c96157c781cc96729395b52d3f841e2b
Reviewed-on: https://skia-review.googlesource.com/102500
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'tools/viewer/SkottieSlide.h')
-rw-r--r-- | tools/viewer/SkottieSlide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/viewer/SkottieSlide.h b/tools/viewer/SkottieSlide.h index 44929d7be5..cbb70b2183 100644 --- a/tools/viewer/SkottieSlide.h +++ b/tools/viewer/SkottieSlide.h @@ -56,7 +56,6 @@ private: struct Rec { sk_sp<AnimationWrapper> fWrapper; - SkMSec fTimeBase = 0; bool fShowAnimationInval = false; explicit Rec(sk_sp<AnimationWrapper>); @@ -69,7 +68,8 @@ private: SkTArray<Rec> fAnims; std::unique_ptr<sksg::Scene> fScene; - int fTrackingCell = -1; + SkMSec fTimeBase = 0; + int fTrackingCell = -1; typedef Slide INHERITED; }; |