Closed Zubnix closed 10 months ago
Were you able to make any progress with this yet?
No effort in that area has been made so far, mostly due lack of time and resources. The plan still remains to have Flutter with a modified CanvasKit backend work like it is an ordinary application.
What about using Three.js for compositing the windows? Nvm, in the other thread you're explaining the current WebGL stuff. :)
An intermediate step is to first get plain Skia canvaskit to work. This should be relatively straightforward. An alternative to Flutter might be to create a custom react renderer using skia canvaskit. Not sure which one is less work...
Custom react renderer using skia on top of webgl: https://github.com/udevbe/react-canvaskit
No longer relevant at this point
Currently Flutter Web uses CSS Houdini as it's paint back-end. For it to be able to run as a Greenfield web-app, we need to implement a custom renderer that can output to an array buffer or offscreen webgl canvas. The best candidate for this is CanvasKit which implements Skia in WebAssembly. The big advantage of this approach being that all mentioned drawing apis are based on the Canvas2D api + we get offscreen webgl acceleration for free.