skia2/tools/skottie_ios_app
Kevin Lubick efce17de5d Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h"
This is a reland of commit f60584eb0f

Client changes:
 - https://chromium-review.googlesource.com/c/chromium/src/+/3508565
 - http://cl/433225409
 - http://cl/433450799

Original change's description:
> [includes] Remove link between SkImage.h and SkImageEncoder.h
>
> According to go/chrome-includes [1], this will save about
> 210MB (0.09%) off the Chrome build. http://screen/GVdDaRRneTRuroL
>
> [1] https://commondatastorage.googleapis.com/chromium-browser-clang/include-analysis.html#view=edges&filter=%5Ethird_party%2Fskia%2Finclude%2Fcore%2FSkImage%5C.h%24&sort=asize&reverse=&includer=%5Ethird_party%2Fskia%2Finclude%2Fcore%2FSkImage%5C.h%24&included=&limit=1000
>
> Change-Id: If911ec283a9ce2b07c8509768a6a05446573a215
> Bug: 242216
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/512416
> Reviewed-by: Leon Scroggins <scroggo@google.com>
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Kevin Lubick <kjlubick@google.com>

Bug: 242216
Change-Id: Ic61e4ac2878e7a51f389312a3a434856e2e32be3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/518277
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-03-10 04:47:51 +00:00
..
BUILD.bazel [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
BUILD.gn Update iOS test apps to require C++17. 2022-01-31 23:17:15 +00:00
GrContextHolder.h Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
GrContextHolder.mm Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
Info.plist skottie_ios_app: fix tap logic 2019-12-17 16:09:42 +00:00
main.mm skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
README.md skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkiaContext.h skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkiaContext.mm skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkiaGLContext.mm Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +00:00
SkiaMetalContext.mm Update iOS Skottie App for GrContext changes 2020-08-14 12:55:56 +00:00
SkiaUIContext.mm Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h" 2022-03-10 04:47:51 +00:00
SkiaViewController.h skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkiaViewController.mm skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkMetalViewBridge.h Reland "Migrate metal tools away from GrContext" 2020-09-23 19:11:07 +00:00
SkMetalViewBridge.mm Reland "Remove use of legacy display globals." 2020-10-05 19:13:58 +00:00
SkottieViewController.h skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkottieViewController.mm skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +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
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.