forked from revery-ui/esy-skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SVG): don't use unique_ptr (revery-ui#32)
* SVG: don't use unique_ptr on MakeFromStream * SVG: add ref & unref functions * Patches: update SVG patch * Patches: fix patch * Patches: create generate patches script
- Loading branch information
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
generate_patch() { | ||
base_commit=$1 | ||
files=$2 | ||
output=$3 | ||
|
||
git diff $base_commit -- $files > $output | ||
} | ||
|
||
# SVG patch | ||
svg_base_commit="91c98f63fbb6365fba96b4141faa2d135c818dd9" | ||
svg_files="include/c/sk_svg.h include/c/sk_types.h src/c/sk_svg.cpp src/c/sk_types_priv.h" | ||
svg_output="./patches/svg-c-bindings.patch" | ||
generate_patch "$svg_base_commit" "$svg_files" "$svg_output" | ||
|
||
# BUILD.gn patch | ||
build_gn_base_commit="91c98f63fbb6365fba96b4141faa2d135c818dd9" | ||
build_gn_files="BUILD.gn" | ||
build_gn_output="./patches/build-svg.patch" | ||
generate_patch "$build_gn_base_commit" "$build_gn_files" "$build_gn_output" | ||
|
||
# Expose SVGDOM patch | ||
expose_svgdom_base_commit="91c98f63fbb6365fba96b4141faa2d135c818dd9" | ||
expose_svgdom_files="experimental/svg/model/SkSVGDOM.h" | ||
expose_svgdom_output="./patches/expose-svgdom.patch" | ||
generate_patch "$expose_svgdom_base_commit" "$expose_svgdom_files" "$expose_svgdom_output" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters