Re:WebKit switching to Skia for 2d graphics rendering
by danpalmer on Tuesday February 20, 2024 @05:06AM
(#39439554)
Out of interest what's difficult about it to build? In my experience CMake isn't exactly a great developer experience, and many projects of this size take similar times to build. Is the problem specific to Skia or Google open source projects, or is it more based on the (necessary) size of the project?
[ Parent
| on HN ]
Re:WebKit switching to Skia for 2d graphics rendering
by pcwalton on Tuesday February 20, 2024 @05:08AM
(#39439562)
The difficult parts change all the time and usually boil down to some sort of undocumented or poorly-documented dependency, especially if you're trying to enable the GPU backends. Every time someone I know tries to get it building it takes them a week to figure out how to do it.
Re:WebKit switching to Skia for 2d graphics rendering
by twic on Tuesday February 20, 2024 @08:23AM
(#39440877)
Does Skia have a continuous build somewhere? Is there any way to piggyback off the config for that?
I found this:
https://github.com/google/skia-buildbot
Assuming that the Skia maintainers keep that working, it might be easier to build the buildbot and use that to build Skia, than to build Skia directly!
Re:WebKit switching to Skia for 2d graphics rendering
by jupp0r on Tuesday February 20, 2024 @09:45AM
(#39441902)
Yes, it's built as part of Chrome IIRC.
Re:WebKit switching to Skia for 2d graphics rendering
by Lutger on Tuesday February 20, 2024 @05:25AM
(#39439644)
I used to do that when I started out with C/C++...15 years ago. Now my patience is running out after 10 minutes. Tooling has become so much better, but it seems not that much with some C/C++ projects. At least the build times are better, I remember big libs would could take hours to build.
Re:WebKit switching to Skia for 2d graphics rendering
by ho_schi on Tuesday February 20, 2024 @07:00AM
(#39440241)
Meson and ninja improved a lot in this area for C/C++.
Re:WebKit switching to Skia for 2d graphics rendering
by rstat1 on Tuesday February 20, 2024 @03:25PM
(#39446426)
Took me less than an hour to figure out how to build it just reading the instructions they have on their website for building.
Skia really isn't that hard to use IMO even for GPU accelerated stuff.
Re:WebKit switching to Skia for 2d graphics rendering
by wokwokwok on Tuesday February 20, 2024 @05:22AM
(#39439631)
> In my experience CMake isn't exactly a great developer experience
o_O unlike GN?
Have you used it much?
Re:WebKit switching to Skia for 2d graphics rendering
by danpalmer on Tuesday February 20, 2024 @05:41AM
(#39439741)
I haven't used GN, I'm mostly thinking of Bazel, but was also just interested in the specifics.
Re:WebKit switching to Skia for 2d graphics rendering
by rstat1 on Tuesday February 20, 2024 @03:36PM
(#39446561)
Yes GN IMO is a much better experience than CMake. Its fully self-contained in a single binary that you can easily just distribute with your code. I have a small python script I use with it to regen files, and then to run Ninja to do the actual builds.
I've been using it for years and have no complaints.