719a8119ae
Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Debug-iOS_Metal Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Debug-iOS Change-Id: Iddfe7f3c32c00cbd84064835c2dd3a31126c2ece Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260498 Reviewed-by: Hal Canary <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com> |
||
---|---|---|
.. | ||
BUILD.gn | ||
Info.plist | ||
main.mm | ||
README.md | ||
SkAnimationDraw.h | ||
SkMetalViewBridge.h | ||
SkMetalViewBridge.mm | ||
SkottieMtkView.h | ||
SkottieMtkView.mm | ||
SkottieUIView.h | ||
SkottieUIView.mm | ||
SkTimeKeeper.h |
Skottie iOS Example App
Metal
How to compile for the Metal backend:
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_example
Then install the out/ios_arm64_mtl/skottie_example.app
bundle.
CPU
How to compile for the CPU backend:
cd $SKIA_ROOT_DIRECTORY
mkdir -p out/ios_arm64_cpu
cat > out/ios_arm64_cpu/args.gn <<EOM
target_cpu="arm64"
target_os="ios"
skia_enable_gpu=false
skia_enable_pdf=false
skia_use_expat=false
tools/git-sync-deps
bin/gn gen out/ios_arm64_cpu
ninja -C out/ios_arm64_cpu skottie_example
Then install the out/ios_arm64_cpu/skottie_example.app
bundle.