Go to file
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
animations
bench Add a convenience to downcast contexts into GrDirectContext 2020-07-07 18:13:50 +00:00
bin bin/try: automatically set 'git cl issue' when not found 2020-06-25 17:44:01 +00:00
build/fuchsia [fuchsia] Fix fidlc command. 2020-06-10 03:29:24 +00:00
build_overrides Use Dawn's BUILD.gn instead of defining another one for Skia. 2020-04-13 23:26:31 +00:00
client_utils/android Remove SkBitmapRegionDecoder and SkBRDAllocator 2020-06-01 20:56:29 +00:00
demos.skia.org [demos] Move to subdir 2020-06-23 17:29:37 +00:00
dm Update DDL test harness to use GrDirectContexts 2020-07-08 12:33:27 +00:00
docker Support specifying hash and patch_ref in skia-release & skia-wasm-release Dockerfiles 2020-05-06 20:39:04 +00:00
docs/examples Finish the DDL sk_sp migration 2020-06-29 16:49:54 +00:00
example Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
experimental Add a full build option for SkottieKit 2020-06-29 18:48:14 +00:00
fuzz Update final set of tools to take GrDirectContext 2020-07-06 12:48:03 +00:00
gm Add a convenience to downcast contexts into GrDirectContext 2020-07-07 18:13:50 +00:00
gn Remove GrCoordTransform entirely 2020-07-07 20:06:04 +00:00
include Mark SkGetThreadID SK_SPI in debug. 2020-07-07 21:50:55 +00:00
infra Move frame measurement code into shared location 2020-07-07 21:53:25 +00:00
modules [skottie] Auto-orient fixes 2020-07-08 13:52:27 +00:00
platform_tools fix undefined behavior when skipping drawFrames 2020-07-06 16:05:02 +00:00
resources [skottie] Auto-orient fixes 2020-07-08 13:52:27 +00:00
samplecode show fat stroking on lines or curves 2020-06-26 19:13:00 +00:00
site release notes for 85 to web page 2020-06-29 21:44:05 +00:00
specs Fix CanvasKit generated documentation to work with emscripten 1.39.16. 2020-05-27 12:23:32 +00:00
src Replace remainder of HRESULT checks with macro 2020-07-08 13:37:07 +00:00
tests Remove GrCoordTransform entirely 2020-07-07 20:06:04 +00:00
third_party Revert "Use Wuffs v0.3 by default, not v0.2" 2020-07-03 14:41:53 +00:00
tools Update DDL test harness to use GrDirectContexts 2020-07-08 12:33:27 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore Reland the new module for skia lib for g3 2020-06-23 14:19:13 +00:00
.gn
AUTHORS GCC: fix unknown attribute warnings for no_sanitize 2020-07-06 13:52:22 +00:00
BUILD.gn Always use Skia's Vulkan headers when compiling particles module 2020-07-07 20:44:34 +00:00
codereview.settings
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll ANGLE from 8b80e852bd6c to 3688cb363ccd (9 revisions) 2020-07-08 12:49:02 +00:00
go.mod Update Go Deps 2020-07-07 05:32:52 +00:00
go.sum Update Go Deps 2020-07-07 05:32:52 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS
PRESUBMIT.py PRESUBMIT: Don't check formatting of deleted files 2020-04-08 10:36:09 +00:00
public.bzl Add SK_BUILD_NO_OPTS to mac base defines 2020-07-01 19:36:15 +00:00
README
README.chromium
RELEASE_NOTES.txt Remove unused GrFlushFlags. 2020-06-30 19:39:31 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.