fbddfbb9f3
Add support for external precomp Skottie layers. This allows embedders to seamlessly mix custom/Lottie content. General flow: * embedders register a PrecompInterceptor callback with the animation builder * at build time, Skottie invokes the callback for each pre-composed layer - the returned ExternalLayer implementation is used instead of the Lottie layer payload - (a nullptr value signals Skottie to use the usual Lottie payload) * at render time, ExternalLayer::render() is called to defer content rendering to the embedder Also implement a sample PrecompInterceptor which attempts to substitute precmp layers matching a given pattern with external Lottie animations: precomp_name: "__foo.json" -> Animation("foo.json") This new mechanism is a generalization of (and supersedes) the old NestedAnimation hack - so we can remove that. Change-Id: Id80fe11881c62b8717c2476117c7c03ad5300eef Reviewed-on: https://skia-review.googlesource.com/c/skia/+/288130 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Mike Reed <reed@google.com> |
||
---|---|---|
.. | ||
android_fonts | ||
diff_canvas_traces | ||
empty_images | ||
fonts | ||
icc_profiles | ||
images | ||
invalid_images | ||
lua | ||
nima | ||
particles | ||
skottie | ||
text | ||
Cowboy.svg | ||
crbug769134.fil | ||
nov-talk-sequence.txt | ||
pdf_command_stream.txt | ||
README | ||
SkVMTest.expected |
The resources directory includes some third party content used by Skia. Licenses for that code are included in this file. Openclipart Openclipart uses the Creative Commons Zero 1.0 Public Domain License every time an artist uploads a piece of clipart to Openclipart to make it clear the artist is releasing the creative work for anyone to use for any reason, even commercially. This act of "sharing" is the foundation Openclipart is based upon. More details on the license can be found at https://creativecommons.org/publicdomain/zero/1.0/. LGPL or compatible (as implied by inclusion in KDE SVN) http://websvn.kde.org/trunk/tests/ksvgtests/custom/cowboy.svg