News for hackers. Stuff that matters.
Re:WebKit switching to Skia for 2d graphics rendering by pavlov on Tuesday February 20, 2024 @05:31AM (#39439686)
I have an open source project that uses Skia, and I just keep static libraries for all target platforms because the Skia build process is so painful.

Maybe once a year I bite the bullet, do a new Skia build on all the platforms, and then I have to figure out how the C++ API has changed. At least that’s just rote work of fixing compiler errors by looking at the new header files.

Even though it’s a pain in the ass, I still use Skia because it’s got the best combination of performance and features. Sadly Cairo doesn’t quite compete. Skia gives my project a pretty good guarantee that 2D graphics render like in Chrome, and that’s important for this use case.

Re:WebKit switching to Skia for 2d graphics rendering by gcr on Tuesday February 20, 2024 @11:00AM (#39442867)
Out of curiosity, why do you rebuild? What kinds of new features would get you to want to upgrade?
Re:WebKit switching to Skia for 2d graphics rendering by pavlov on Tuesday February 20, 2024 @12:11PM (#39443841)
The Skia C++ API changes quite a lot. If I didn't sync up regularly, the tech debt could become a problem down the line, for example if I want to add a platform that does need a new build of the library.
Re:WebKit switching to Skia for 2d graphics rendering by creshal on Tuesday February 20, 2024 @12:29PM (#39444080)
CVE-2023-2136 and friends are good reasons to upgrade.
Re:WebKit switching to Skia for 2d graphics rendering by Calavar on Tuesday February 20, 2024 @11:19AM (#39443140)
Have you considered Blend2D? It's much easier to build, and performance is on par with Skia.
Re:WebKit switching to Skia for 2d graphics rendering by intblku32 on Tuesday February 20, 2024 @04:13PM (#39446988)
I thought Blend2D was a CPU-only library. Skia offers hardware acceleration via the GPU.