• Chris Wilson's avatar
    Eliminate self-intersecting strokes. · f8bb3617
    Chris Wilson authored
    We refactor the surface fallbacks to convert full strokes and fills to the
    intermediate polygon representation (as opposed to before where we
    returned the trapezoidal representation). This allow greater flexibility
    to choose how then to rasterize the polygon. Where possible we use the
    local spans rasteriser for its increased performance, but still have the
    option to use the tessellator instead (for example, with the current
    Render protocol which does not yet have a polygon image).
    
    In order to accommodate this, the spans interface is tweaked to accept
    whole polygons instead of a path and the tessellator is tweaked for speed.
    
    Performance Impact
    ==================
    
    ...
    Still measuring, expecting some severe regressions.
    ...
    f8bb3617