diff options
author | Florin Malita <fmalita@chromium.org> | 2018-01-29 10:49:49 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-29 16:16:21 +0000 |
commit | cca86f386cfd050cd03a25b305fc6fda48a8d6cd (patch) | |
tree | ed86f775c14946e84eefbb8cfe248c12ed7136ce /samplecode | |
parent | a6717ce9fe02e1a251eaa39aa096dd90c6975f26 (diff) |
[skottie] Hierarchical animators
Instead of a flat animator space, introduce animator groups.
This allows us to encapsulate layer animators and only dispatch ticks
when their owning layer is active.
TBR=
Change-Id: I1fc8a55abf68a712b71969bb1a11275dbe54c236
Reviewed-on: https://skia-review.googlesource.com/101201
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleSVGPong.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleSVGPong.cpp b/samplecode/SampleSVGPong.cpp index 6cde5b0d8a..993af38be8 100644 --- a/samplecode/SampleSVGPong.cpp +++ b/samplecode/SampleSVGPong.cpp @@ -145,7 +145,7 @@ protected: SkRect::MakeIWH(this->width(), this->height()), SkMatrix::kFill_ScaleToFit)); auto root = sksg::Transform::Make(std::move(group), fContentMatrix); - fScene = sksg::Scene::Make(std::move(root), sksg::Scene::AnimatorList()); + fScene = sksg::Scene::Make(std::move(root), sksg::AnimatorList()); // Off we go. this->updatePaddleStrategy(); |