aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-01-02 17:39:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-02 22:59:01 +0000
commite8bb6da08dc61832062e7a0e86b9ebd44953301c (patch)
treee458c66b5c755ca6742281b61ab94f56d450cde9 /experimental
parent750c78292849e29d36ca302f9c30dac88e7e2a31 (diff)
[skotty] Fix native path lerp
SkPath::interpolate() seems to use 'weight' opposite from documentation. TBR= Change-Id: I678f7939776bfb21614095df8a2c2dcaa4ecd5f5 Reviewed-on: https://skia-review.googlesource.com/90341 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental')
-rw-r--r--experimental/skotty/SkottyAnimator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/skotty/SkottyAnimator.cpp b/experimental/skotty/SkottyAnimator.cpp
index 51c3d33565..451f146888 100644
--- a/experimental/skotty/SkottyAnimator.cpp
+++ b/experimental/skotty/SkottyAnimator.cpp
@@ -39,7 +39,7 @@ void KeyframeInterval<ShapeValue>::lerp(float t, ShapeValue* v) const {
SkASSERT(fV0.cardinality() == fV1.cardinality());
SkASSERT(v->cardinality() == 0);
- SkAssertResult(fV0.fPath.interpolate(fV1.fPath, t, &v->fPath));
+ SkAssertResult(fV1.fPath.interpolate(fV0.fPath, t, &v->fPath));
}
} // namespace skotty