Analytic AA in Graphite

66 views
Skip to first unread message

Daljit

unread,
Aug 7, 2026, 1:23:08 PMAug 7
to skia-discuss
Hi Skia Team,
To the best of my knowledge, the AA strategy in the graphite backend relies on multisampling, while Ganesh still supports an analytic method based on coverage. Is there any plans for graphite to support analytic AA?

Michael Ludwig

unread,
Aug 11, 2026, 2:43:20 PMAug 11
to skia-discuss
Graphite uses analytic AA for stroked and filled rounded rectangles (and regular rectangles), lines, and arcs.  It has a context-level option to disable MSAA, at which point it uses CPU-rasterization into alpha texture masks, which has a quality level matching analytic AA.  We are also working on implementing compute-based and CPU/compute hybrid rendering strategies that achieve quality similar to Ganesh's analytic AA path rendering. 

There are two path rendering strategies that Ganesh has for analytic AA that are not being ported to Graphite: one is for convex paths and one involves extensive CPU triangulation and generation of detailed vertex meshes that interpolate from 0 to 1 along the edge of a shape.  The triangulating path renderer is limited to paths with a small number of verbs for performance reasons; when it does not apply and the path is not convex, Ganesh will either use CPU-rasterization or MSAA as well.

Reply all
Reply to author
Forward
0 new messages