diff options
Diffstat (limited to 'experimental/skotty/SkottyAnimator.cpp')
-rw-r--r-- | experimental/skotty/SkottyAnimator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/experimental/skotty/SkottyAnimator.cpp b/experimental/skotty/SkottyAnimator.cpp index d4c5c96c1a..7c4c16e780 100644 --- a/experimental/skotty/SkottyAnimator.cpp +++ b/experimental/skotty/SkottyAnimator.cpp @@ -43,12 +43,12 @@ void KeyframeInterval<ShapeValue>::lerp(float t, ShapeValue* v) const { } float AnimatorBase::ComputeLocalT(float t, float t0, float t1, - const SkPoint& c0, const SkPoint& c1) { + const SkCubicMap* cubicMap) { SkASSERT(t1 > t0); auto lt = (t - t0) / (t1 - t0); - if (c0 != SkPoint({0, 0}) || c1 != SkPoint({1, 1})) { - // TODO: lt = CubicBezier(lt, c0, c1); + if (cubicMap) { + lt = cubicMap->computeYFromX(lt); } return SkTPin<float>(lt, 0, 1); |