1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
BUILD.gn Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
GrContextHolder.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
GrContextHolder.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Info.plist Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkMetalViewBridge.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkMetalViewBridge.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaContext.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaContext.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaGLContext.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaMetalContext.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaUIContext.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaViewController.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkiaViewController.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkottieViewController.h Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
SkottieViewController.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
main.mm Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

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
EOM

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.

OpenGL

How to compile for the OpenGL backend:

cd $SKIA_ROOT_DIRECTORY

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

tools/git-sync-deps
bin/gn gen out/ios_arm64_gl
ninja -C out/ios_arm64_gl skottie_example

Then install the out/ios_arm64_gl/skottie_example.app bundle.