[canvaskit] Make effect deserialization on for everything but npm.
Change-Id: I7a60c55940d6d4704aa6d2161b0b8e93c9799285 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303597 Reviewed-by: Nathaniel Nifong <nifong@google.com>
This commit is contained in:
parent
d9926908b5
commit
a6ab4b4f80
@ -67,12 +67,12 @@ npm:
|
||||
mkdir -p ./canvaskit/bin
|
||||
# These features are turned off to keep code size smaller for the
|
||||
# general use case.
|
||||
./compile.sh release no_skottie no_particles no_rt_shader no_alias_font
|
||||
./compile.sh release no_skottie no_particles no_rt_shader no_alias_font no_effects_deserialization
|
||||
cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin
|
||||
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
|
||||
|
||||
mkdir -p ./canvaskit/bin/core
|
||||
./compile.sh release no_skottie no_particles no_pathops no_rt_shader no_font no_skp_serialization
|
||||
./compile.sh release no_skottie no_particles no_pathops no_rt_shader no_font no_skp_serialization no_effects_deserialization
|
||||
cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin/core
|
||||
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin/core
|
||||
|
||||
|
@ -76,16 +76,18 @@ if [[ $@ == *cpu* ]]; then
|
||||
fi
|
||||
|
||||
SKP_JS="--pre-js $BASE_DIR/skp.js"
|
||||
GN_SKP_FLAGS="\"-DSK_DISABLE_EFFECT_DESERIALIZATION\","
|
||||
GN_SKP_FLAGS=""
|
||||
WASM_SKP="-DSK_SERIALIZE_SKP"
|
||||
if [[ $@ == *no_skp_serialization* ]]; then
|
||||
# This saves about 20kb compressed.
|
||||
SKP_JS=""
|
||||
WASM_SKP=""
|
||||
elif [[ $@ == *include_effects_deserialization* ]]; then
|
||||
# This costs about 60kb compressed, so it is disabled by default.
|
||||
echo "Enabling effects deserialization"
|
||||
GN_SKP_FLAGS=""
|
||||
GN_SKP_FLAGS="\"-DSK_DISABLE_EFFECT_DESERIALIZATION\","
|
||||
fi
|
||||
if [[ $@ == *no_effects_deserialization* ]]; then
|
||||
# This saves about 60kb compressed.
|
||||
echo "disabling effects deserialization"
|
||||
GN_SKP_FLAGS="\"-DSK_DISABLE_EFFECT_DESERIALIZATION\","
|
||||
fi
|
||||
|
||||
SKOTTIE_JS="--pre-js $BASE_DIR/skottie.js"
|
||||
|
Loading…
Reference in New Issue
Block a user