aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-12-30 12:27:00 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-30 22:55:39 +0000
commit094ccde2380bfbb615e25d0d80208148fcd47f17 (patch)
treed6233c61996a3f268938953608b0b3a2d4590e07 /tools/flags
parent83b2b08afcf903a455cd0ea999d0c2936088fffd (diff)
Initial Lottie loader impl (Skotty)
Coarse workflow: * Construction 1) build a Json tree 2) collect asset IDs (for preComp/image layer resolution) 3) "attach" pass - traverse the Json tree - build an SkSG dom, one fragment at a time - attach "animator" objects to the dom, for each animated prop 4) done, we can throw away the Json tree * For each animation tick 1) iterate over active animators and poke their respective dom nodes/attributes 2) revalidate the SkSG dom 3) draw the SkSG dom Note: post construction, things are super-simple - we just poke SkSG DOM attributes with interpolated values, and everything else is handled by SkSG (invalidation, revalidation, render). Change-Id: I96a02be7eb4fb4cb3831f59bf2b3908ea190c0dd Reviewed-on: https://skia-review.googlesource.com/89420 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'tools/flags')
-rw-r--r--tools/flags/SkCommandLineFlags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/flags/SkCommandLineFlags.h b/tools/flags/SkCommandLineFlags.h
index 15f12d915b..4a22c3f4bf 100644
--- a/tools/flags/SkCommandLineFlags.h
+++ b/tools/flags/SkCommandLineFlags.h
@@ -155,6 +155,9 @@ public:
fStrings[i].set(str);
}
+ const SkString* begin() const { return fStrings.begin(); }
+ const SkString* end() const { return fStrings.end(); }
+
private:
void reset() { fStrings.reset(); }