aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/skotty/SkottyAnimator.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-12-30 18:47:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-31 00:07:39 +0000
commite8750e1078fe72ed8486c2cc4b13c967dc750baf (patch)
tree2f48da6bd441b1f645cdb24b37208040858c0ab2 /experimental/skotty/SkottyAnimator.cpp
parent094ccde2380bfbb615e25d0d80208148fcd47f17 (diff)
[skotty] Fix path close handling
... and add a transform animation sample TBR= Change-Id: I27a67d7861dffb9ca22a5e7155ee0eba3b4575f6 Reviewed-on: https://skia-review.googlesource.com/90023 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/skotty/SkottyAnimator.cpp')
-rw-r--r--experimental/skotty/SkottyAnimator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/experimental/skotty/SkottyAnimator.cpp b/experimental/skotty/SkottyAnimator.cpp
index e08cf35995..f08e7088da 100644
--- a/experimental/skotty/SkottyAnimator.cpp
+++ b/experimental/skotty/SkottyAnimator.cpp
@@ -54,6 +54,9 @@ void KeyframeInterval<ShapeValue>::lerp(float t, ShapeValue* v) const {
lerp_point(fV0.fVertices[i].fVertex , fV1.fVertices[i].fVertex , t)
}));
}
+
+ // hmm, any meaningful interpolation to consider here?
+ v->fClose = fV0.fClose;
}
} // namespace skotty