I'm asking because usually Skia produces different aliasing results on different platforms (eg: Windows vs macOS).
I'm asking because usually Skia produces different aliasing results on different platforms (eg: Windows vs macOS).
On Windows, for example, Skia will render text closer to Direct2D/DirectWrite. On MacOS to CoreText.
For the reference, here is rendering of the same UI (HTML/CSS) in Sciter using Direct2D (left) and Skia/OpenGl (right):
https://sciter.com/wp-content/uploads/2020/09/d2d-vs-skia.pn...
So what you're saying is that Skia changes the aliasing to look like the platform it's running on?
Damn, I wish I could make Chrome on Windows render text like it does macOS.
Here is MacOS rendering https://sciter.com/wp-content/uploads/2020/09/mac-os-front.p...
Maybe that's why Chrome looks so different on both platforms.
It depends. Skia can either be used as software or GPU renderer.
GPU AA rendering can slightly differs when using MSAA. When MSAA is turned on, Skia has different path renderer strategies (that could be CPU-based, like SDF, or GPU-based using coverage counting). In that case (msaa turned off), AA result should be identical on all platforms, at the cost of performance.
Worth keeping in mind that what Skia's GPU backend decides to do depends on GPU features, and sometimes on GPU workarounds. There's no guaranteed way to force it to render identically on all platforms short of something like swiftshader.
I thought GrGlCaps was supposed to fallback most of the time to equivalents. Also thought that golden images baseline where pixel tested against a large set of different hardware.
But yeah, Skia blacklists MSAA for Intel GPU, so if you opt-in for sampling, you're not guaranted it's going to be enabled and therefore observe differences