Re:CanvasKit – Skia and WebAssembly
by hackcasual on Friday July 19, 2019 @02:00PM
(#20480982)
What if you want a common C++ code base that can run on web or desktop?
[ Parent
| on HN ]
If you want that you will create set of C++ classes wrapping Skia, Direct2D or Cairo with the same API as browser provides.
That is actually what I did in Sciter that is using these libraries for rendering on different platforms - they all have very close feature set - umbrella wrapper is quite simple.
Re:CanvasKit – Skia and WebAssembly
by hackcasual on Friday July 19, 2019 @02:58PM
(#20481510)
Sure, and that's actually what FireFox does, but not everyone is going to prioritize that approach.
So it is doable. QED.
Re:CanvasKit – Skia and WebAssembly
by hackcasual on Friday July 19, 2019 @05:02PM
(#20482405)
So because someone can abstract away the underlying graphics library, CanvasKit shouldn't exist?