[cairo] Fill+stroke optimisation for the SVG backend

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Wed Aug 1 14:37:31 PDT 2007


Le mercredi 01 août 2007 à 08:36 +0930, Adrian Johnson a écrit :
> Emmanuel Pacaud wrote:
> > The thing I don't like in what I've done is the new fill-stroke backend
> > method, which seems redundant with the two other fill and stroke
> > methods. And also I wonder if this optimisation makes sense for the PDF
> > and PS backends. Is it possible to use the same path data for fill and
> > stroke in a PDF or PS file ?
> 
> PDF has a fill then stroke operator so this optimisation can be done. In
> PS the path can be reused by wrapping the fill in a gsave/grestore.

Ok, good to know. So one question remains: does my implementation looks
ok for inclusion in cairo ?

	Emmanuel.



More information about the cairo mailing list