skia2/modules
Florin Malita cfbb56c6e1 [skottie] Auto-orient fixes
Two issues:

1) For static keyframes (start_value == end_value) AE yields horizontal
   orientation (0 tangent).  We technically have the same logic in
   Skottie, but our value deduplication logic interferes: the two
   consecutive equal values are consolidated, and the result ends up
   holding the spatial lerp info for the next frame => our hold frames
   auto-orient for the beginning of the next keyframe.

   Fix: skip value deduplication when spatial lerp is present.

2) The very last keyframe is always static and holds no spatial info.
   AE retains the orientation of the previous frame, but Skottie yields
   0 tangent.

   Fix: the easiest way to accomplish AE semantics is to detect when
   we're dealing with the last keyframe, and swap with the previous
   keyframe with an adjust weight of 1 (to select the end value).  This
   produces the same lerp result (because keyframed values are always
   contiguous) and also respects the orientation of the prev frame.

TBR=
Change-Id: Id661f7804533e95b747722457489a7ef759572a4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301176
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2020-07-08 13:52:27 +00:00
..
canvaskit Helper function for camera setup 2020-07-07 00:30:03 +00:00
particles Always use Skia's Vulkan headers when compiling particles module 2020-07-07 20:44:34 +00:00
pathkit Added CanvasKit.MakeImageFromCanvasImageSource which is useful as an alternative to 2020-06-15 19:35:09 +00:00
skottie [skottie] Auto-orient fixes 2020-07-08 13:52:27 +00:00
skparagraph Revert "ICU API: only in SkParagraph, simplified." 2020-07-06 19:59:15 +00:00
skplaintexteditor Hide ICU C++ API from Skia users. 2020-05-29 21:43:19 +00:00
skresources [skottie] SkResources::loadTypeface() callback 2020-06-16 18:53:04 +00:00
sksg [skottie] Add shape layer Offset Paths support 2020-07-06 16:31:52 +00:00
skshaper Revert "ICU API: only in SkParagraph, simplified." 2020-07-06 19:59:15 +00:00