Hello list,
I'm experimenting with Skia on Linux, and previously had written a rudimentary GLX+Skia+XCB window creation thing and was able to draw on screen.
Since I thought EGL would be more flexible, I attempted to replace the GLX stuff with EGL.
I succeeded in drawing on screen, but the quality of the EGL result is, well, abysmal.
With GLX, it seemed there was some form of anti-aliasing enabled, as a line drawn on the pixel boundary was blended into two pixels:

With EGL, this effect is absent, and above all, text rendering is just bad:

In both cases, the Skia side is identical: I use the _glx or _egl versions of the GrGlCreateNativeInterface function, respectively.
I first thought this would be due to the EGL config that eglChooseConfig picked, but now I have tried every config returned by eglGetConfigs, of which 4 give the same result and the other four fail to produce a context and/or window at all.
I am out of ideas for how to fix the EGL implementation. It seems like something Skia does differently, or that the rendering to screen does differently.
Unfortunately, these are my first steps into low-level GUI programming, and it seems I'm stuck.
I have a preference for a single EGL implementation if possible, so I don't need to write/maintain overlapping functionality for both APIs.
Does anyone have any ideas where the difference might come from?