skia2/tools/skottie_ios_app
Greg Daniel 49de1031d4 Reland "Remove deprecated flush calls."
This reverts commit 5e6d789ce4.

Reason for revert: Relanding with fix landed in chrome

Original change's description:
> Revert "Remove deprecated flush calls."
> 
> This reverts commit d8fd0bf574.
> 
> Reason for revert: chrome roll
> 
> Original change's description:
> > Remove deprecated flush calls.
> > 
> > Bug: skia:10118
> > Change-Id: I13758b5416784c296b8b5be9f3228230ac1be05f
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290540
> > Commit-Queue: Greg Daniel <egdaniel@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
> 
> TBR=egdaniel@google.com,bsalomon@google.com
> 
> Change-Id: I49d35cdb258e632f645974c5ec62075d3392efe0
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:10118
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290834
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Greg Daniel <egdaniel@google.com>

TBR=egdaniel@google.com,bsalomon@google.com

# Not skipping CQ checks because this is a reland.

Bug: skia:10118
Change-Id: Ie24d7845a4ad75f95afe59037ea80a9f38082f13
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290918
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-05-20 15:48:46 +00:00
..
BUILD.gn reformat GN files 2020-04-01 23:23:03 +00:00
GrContextHolder.h skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
GrContextHolder.mm Revert "Revert "Revert "Revert "Don't build GL on Metal, Vulkan, Dawn, Direct3D bots"""" 2020-03-20 17:11:58 +00:00
Info.plist
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 deprecated flush calls." 2020-05-20 15:48:46 +00:00
SkiaMetalContext.mm Reland "Remove deprecated flush calls." 2020-05-20 15:48:46 +00:00
SkiaUIContext.mm [minor] tools/skottie_ios_app/Skia*Context: remember to cast 2020-01-14 20:05:17 +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 skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +00:00
SkMetalViewBridge.mm skottie_ios_app: Add OpenGL. 2020-01-14 16:16:32 +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.