skia2/tools/viewer
Florin Malita 094ccde238 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>
2017-12-30 22:55:39 +00:00
..
GMSlide.cpp Add more SampleApp support to viewer. 2017-02-14 21:25:01 +00:00
GMSlide.h Add more SampleApp support to viewer. 2017-02-14 21:25:01 +00:00
ImageSlide.cpp Add onBackendCreated callback to Viewer 2017-02-24 22:37:34 +00:00
ImageSlide.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
ImGuiLayer.cpp Move ImGui support code to ImGuiLayer 2017-12-11 17:37:58 +00:00
ImGuiLayer.h Move ImGui support code to ImGuiLayer 2017-12-11 17:37:58 +00:00
SampleSlide.cpp Fix sample modifier keys for mouse events 2017-12-05 14:05:31 +00:00
SampleSlide.h Add sample mouse support to Viewer 2017-11-02 14:25:21 +00:00
SkottySlide.cpp Initial Lottie loader impl (Skotty) 2017-12-30 22:55:39 +00:00
SkottySlide.h Initial Lottie loader impl (Skotty) 2017-12-30 22:55:39 +00:00
SKPSlide.cpp SkFontData to use smart pointers. 2016-09-16 06:24:20 -07:00
SKPSlide.h Add samples to Viewer. 2016-06-16 09:52:35 -07:00
Slide.h Add sample mouse support to Viewer 2017-11-02 14:25:21 +00:00
StatsLayer.cpp Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00
StatsLayer.h Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00
Viewer.cpp Initial Lottie loader impl (Skotty) 2017-12-30 22:55:39 +00:00
Viewer.h Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00