DjDeveloperr / skia_canvas

Fast HTML Canvas API implementation for Deno using Google Skia
https://deno.land/x/skia_canvas
Apache License 2.0
124 stars 7 forks source link

Wasm Version #23

Open DjDeveloperr opened 1 year ago

DjDeveloperr commented 1 year ago

It should be possible to compile this library to Wasm and use the C API through Wasm. The wrapping code could be reused, just the loading logic would change between using Wasm and FFI. Sure, there will be some performance penalty but there are legitimate use cases such as running in a sandboxed environment such as Deno Deploy which does not support FFI but Wasm.

Also See: #22