Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
BUILD.gn | H A D | 25-Apr-2025 | 2.2 KiB | 74 | 71 | |
GrContextHolder.h | H A D | 25-Apr-2025 | 546 | 18 | 8 | |
GrContextHolder.mm | H A D | 25-Apr-2025 | 762 | 28 | 18 | |
Info.plist | H A D | 25-Apr-2025 | 416 | 11 | 10 | |
README.md | H A D | 25-Apr-2025 | 1.4 KiB | 66 | 47 | |
SkMetalViewBridge.h | H A D | 25-Apr-2025 | 606 | 23 | 12 | |
SkMetalViewBridge.mm | H A D | 25-Apr-2025 | 2.3 KiB | 55 | 46 | |
SkiaContext.h | H A D | 25-Apr-2025 | 598 | 21 | 12 | |
SkiaContext.mm | H A D | 25-Apr-2025 | 384 | 10 | 7 | |
SkiaGLContext.mm | H A D | 25-Apr-2025 | 5.3 KiB | 151 | 132 | |
SkiaMetalContext.mm | H A D | 25-Apr-2025 | 4.1 KiB | 121 | 102 | |
SkiaUIContext.mm | H A D | 25-Apr-2025 | 2.3 KiB | 69 | 58 | |
SkiaViewController.h | H A D | 25-Apr-2025 | 669 | 22 | 11 | |
SkiaViewController.mm | H A D | 25-Apr-2025 | 514 | 17 | 13 | |
SkottieViewController.h | H A D | 25-Apr-2025 | 1.2 KiB | 41 | 16 | |
SkottieViewController.mm | H A D | 25-Apr-2025 | 5.1 KiB | 171 | 136 | |
main.mm | H A D | 25-Apr-2025 | 4.8 KiB | 131 | 111 |
README.md
1# Skottie iOS Example App 2 3## Metal 4 5How to compile for the Metal backend: 6 7 cd $SKIA_ROOT_DIRECTORY 8 9 mkdir -p out/ios_arm64_mtl 10 cat > out/ios_arm64_mtl/args.gn <<EOM 11 target_os="ios" 12 target_cpu="arm64" 13 skia_use_metal=true 14 skia_use_expat=false 15 skia_enable_pdf=false 16 EOM 17 18 tools/git-sync-deps 19 bin/gn gen out/ios_arm64_mtl 20 ninja -C out/ios_arm64_mtl skottie_example 21 22Then install the `out/ios_arm64_mtl/skottie_example.app` bundle. 23 24## CPU 25 26How to compile for the CPU backend: 27 28 cd $SKIA_ROOT_DIRECTORY 29 30 mkdir -p out/ios_arm64_cpu 31 cat > out/ios_arm64_cpu/args.gn <<EOM 32 target_cpu="arm64" 33 target_os="ios" 34 skia_enable_ganesh=false 35 skia_enable_pdf=false 36 skia_use_expat=false 37 EOM 38 39 tools/git-sync-deps 40 bin/gn gen out/ios_arm64_cpu 41 ninja -C out/ios_arm64_cpu skottie_example 42 43Then install the `out/ios_arm64_cpu/skottie_example.app` bundle. 44 45## OpenGL 46 47How to compile for the OpenGL backend: 48 49 cd $SKIA_ROOT_DIRECTORY 50 51 mkdir -p out/ios_arm64_gl 52 cat > out/ios_arm64_gl/args.gn <<EOM 53 target_cpu="arm64" 54 target_os="ios" 55 skia_enable_ganesh=true 56 skia_use_metal=false 57 skia_enable_pdf=false 58 skia_use_expat=false 59 EOM 60 61 tools/git-sync-deps 62 bin/gn gen out/ios_arm64_gl 63 ninja -C out/ios_arm64_gl skottie_example 64 65Then install the `out/ios_arm64_gl/skottie_example.app` bundle. 66