3 ms·
I don't know the history, but I think Figma predates much public knowledge about Skia. Further, I have the impression that Figma has pretty specific and comple
by evmar 5y ago
I don't know the history, but I think Figma predates much public knowledge about Skia.
Further, I have the impression that Figma has pretty specific and complex graphics needs. For one example of the sort of thing I mean, we decode image data in JS and put it into GL textures without the Wasm side ever seeing the pixel data, so that the browser can (potentially) decode on a background thread and uncompressed pixel data doesn't contribute to Wasm heap memory usage. However, I don't know Skia well, so it's possible Skia has some mechanism to composite GL textures it's not responsible for too.
- riskneutral 5y ago> it's possible Skia has some mechanism to composite GL textures it's not responsible for too. I'm pretty sure this can be done in Skia in C++, so it should be possible with WASM. I think it possible to create a Skia surface using an existing GL texture buffer object.