2748306830
skottie_ios builds either with or without Metal. The SkAnimationDraw and SkTimeKeeper classes help abstract out the common elements of the UIView and the MTKView implementations. Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm-Debug-iOS Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm-Release-iOS Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Debug-iOS Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Debug-iOS_Metal Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Release-iOS Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-arm64-Release-iOS_Metal Cq-Include-Trybots: skia/skia.primary:Build-Mac-Clang-x64-Release-iOS Change-Id: I2c5d217b6349188f32a81e013eb29c6254428831 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/258636 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> |
||
---|---|---|
.. | ||
BUILD.gn | ||
main.mm | ||
README.md | ||
SkAnimationDraw.h | ||
SkMetalViewBridge.h | ||
SkMetalViewBridge.mm | ||
SkottieMtkView.h | ||
SkottieMtkView.mm | ||
SkottieUIView.h | ||
SkottieUIView.mm | ||
SkTimeKeeper.h |
##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.