Commit graph

21 commits

Author SHA1 Message Date
Jinny You
bb2cefe9bc wasm: optimize binary size
- Changed optimization flags to -Oz, reducing the binary size by 120KB.
- Applied wasm-opt convergence as a post-process to ensure the minimum possible size with the given optimization flag.
2025-02-17 15:05:10 +09:00
Hermet Park
37c4ace685 infra: rectify the meson build command to meet the standard. 2025-02-07 12:35:24 +09:00
Jinny You
7b9c58fec3 wasm: add gl option to combined binary 2024-12-02 17:06:29 +09:00
RuiwenTang
af5e0e3ef9 gl_engine: support cross compile GL backend into WASM
Support cross compile the GL backend code into WASM.
The code needs WebGL 2.0 API so, the compile flags contains `MAX_WEBGL_VERSION` and `FULL_ES3`
Also add binding code to initialize the WebGL context and GLCanvas.
2024-11-26 17:12:49 +09:00
Jinny You
cd10f4ee23 wasm: update wasm build script
Fixed typo. It breaks build progress now.
2024-10-11 15:29:50 +09:00
Hermet Park
a481f621fe wasm: fix unified build folder structure
The build folder is now aligned with the thorvg.web build.
2024-10-09 00:03:16 +09:00
Hermet Park
145195baac infra: removed beta tag from WebGPU
Removed beta tag for dev convenience. Also, ensures that
ThorVG will officially release WebGPU in the next version (v1.0)
2024-10-07 21:08:52 +09:00
Jinny You
d704a2503a bindings/wasm: Support WebGPU
Updated WASM binding to bring WebGPU on the web player.

binding will generate a WASM binary, which can render animation through both SW and WG raster engine.

A raster engine will be chosen by parameter `engine`, when initializing.
2024-08-20 17:26:23 +09:00
Hermet Park
a49532a818 common: STM32 portability enhancement
Some systems such as micro-processor might not support
the thread feature on the system.

Enhance the portability by compiling the thorvg with toggling the
threading depepdency through the build option.

For this, thorvg newly introduced the internal Key/ScopedLock abstraction
for transparent thread-locking dependnecy.

To turn off the thread feature, please use the next build option:

$meson setup build -Dthreads=false ...

Note that, the thread feature is enabled in default.
Turning off the thread feature could reduce the binary size by 7kb.

issue: https://github.com/thorvg/thorvg/issues/1900
2024-01-18 10:20:21 +09:00
Hermet Park
4c3cdb38b5 infra: migrate cross files into one folder. 2023-10-09 15:39:59 +09:00
Hermet Park
3f05489b80 infra wasm: update the build script.
Disable the log in default for outside users.
we gonna turn it on manually for the lottie viewer
2023-08-17 23:03:37 +09:00
Hermet Park
da1b036e4f loader lottie: -- beta tag.
Now, it's quite workable. Include it in our default integration test suite.
2023-08-07 10:56:35 +09:00
Hermet Park
052cfea4b1 binding wasm: tag it as beta version.
wasm interfaces are fragile now.
we dont'guarantee compatibility yet.
2023-08-04 15:09:28 +09:00
Hermet Park
3eca77b280 infra wasm: remove useless wasm test.
the test hasn't been maintained properly,
and we won't be maintaining it anymore.

please use thorvg.viewer intead. it's much more accurate.
2023-08-04 15:09:28 +09:00
Hermet Park
6ab32cae0b infra wasm: migrate wasm into bindings. 2023-08-04 15:09:28 +09:00
Hermet Park
1267a9d718 infra wasm: update the build script.
revise the compile options to optmize the binary size.
also remove all compile warnings.

size: 552616 -> 446847
2023-08-04 15:09:28 +09:00
Hermet Park
5325ebcba5 infra wasm: up-to-date wasm build 2023-07-29 16:50:27 +09:00
Hermet Park
4d62108d81 update wasm build script
remove the deprecations and warnings.
2021-11-02 19:53:08 +09:00
Hermet Park
2ceee70fcf wasm: turn off the vectorization.
We can visit this feature later when it's stable.
2021-08-20 12:33:18 +09:00
Shinwoo Kim
e9772efbd1 wasm: work with log option
The wasm is using the ThorVG output starting whith "SVG:" to show
unsupported element and attribute of svg file.
This patch updates wasm_build.sh to make ThorVG prints log,
and removes build errors.

  - Following commit needs to include 'algorithm'
    1ed6113 common sw_engine: code refactoring & stabilizing.

  - Following commit needs to include 'string'
    5481633 svg_loader XmlParser: Print unsupported elements, ...
2020-12-15 17:38:22 +09:00
Shinwoo Kim
0c68c45ef7 thorvg viewer: introduce thorvg viewer
Support Emscripten wasm build for thorvg viewer
2020-10-13 19:04:46 +09:00