Hacker News new | past | comments | ask | show | jobs | submit login

What if you want a common C++ code base that can run on web or desktop?



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.


Sure, and that's actually what FireFox does, but not everyone is going to prioritize that approach.


So it is doable. QED.


So because someone can abstract away the underlying graphics library, CanvasKit shouldn't exist?


No.

Because browser already contains Skia (or Direct2D). In native (most performant) form.

Why do you need to download and run Skia inside Skia?




Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: