skia2/experimental/skottie_ios
Hal Canary 988b1e4653 experimental/skottie_ios: Add methods to SkottieMtkView
- (void)seek:(float)seconds;
    - (float)animationDurationSeconds;
    - (float)currentTime;

Also: fix issue with finding json resources.

CQ_INCLUDE_TRYBOTS=skia.primary:Build-Mac-Clang-arm64-Debug-iOS_Metal,Build-Mac-Clang-arm64-Release-iOS_Metal

Change-Id: I19b45dd902b6119216f8c58ad8e13b9036a6b9c3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/244513
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-09-26 21:13:11 +00:00
..
BUILD.gn experimental/skottie_ios: Skottie iOS/Metal App 2019-09-16 19:10:24 +00:00
main.mm experimental/skottie_ios: Add methods to SkottieMtkView 2019-09-26 21:13:11 +00:00
README.md experimental/minimal_ios_mtl_skia_app 2019-09-17 15:18:26 +00:00
SkMetalViewBridge.h experimental/skottie_ios: Skottie iOS/Metal App 2019-09-16 19:10:24 +00:00
SkMetalViewBridge.mm experimental/skottie_ios: Skottie iOS/Metal App 2019-09-16 19:10:24 +00:00
SkottieMtkView.h experimental/skottie_ios: Add methods to SkottieMtkView 2019-09-26 21:13:11 +00:00
SkottieMtkView.mm experimental/skottie_ios: Add methods to SkottieMtkView 2019-09-26 21:13:11 +00:00

##skottie_ios

How to compile:

cd $SKIA_ROOT_DIRECTORY

mkdir -p out/ios_arm64_mtl
cat > out/ios_arm64_mtl/args.gn <<EOM
target_os="ios"
target_cpu="arm64"
skia_use_metal=true
skia_use_expat=false
skia_enable_pdf=false
EOM

tools/git-sync-deps
bin/gn gen out/ios_arm64_mtl
ninja -C out/ios_arm64_mtl skottie_ios

Then install the out/ios_arm64_mtl/skottie_ios.app bundle.