skia2/tools/skottie_ios_app
Jim Van Verth e27670172b Add method to delay drawable acquisition from MTKView
Change-Id: Iad9fadd113d0c97e8ece51df19c7824252d7eb9c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/263197
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2020-01-08 18:28:13 +00:00
..
BUILD.gn SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
Info.plist skottie_ios_app: fix tap logic 2019-12-17 16:09:42 +00:00
main.mm skottie_ios_app: fix tap logic 2019-12-17 16:09:42 +00:00
README.md SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkAnimationDraw.h SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkMetalViewBridge.h SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkMetalViewBridge.mm Add method to delay drawable acquisition from MTKView 2020-01-08 18:28:13 +00:00
SkottieMtkView.h SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkottieMtkView.mm SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkottieUIView.h SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00
SkottieUIView.mm skottie_ios_app: fix tap logic 2019-12-17 16:09:42 +00:00
SkTimeKeeper.h SkMetalDeviceToGrContext: no longer needs any Skia headers 2019-12-16 18:09:40 +00:00

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.