[Cairo] Stroking problem
Soorya Kuloor
skuloor at verano.com
Fri Jul 25 14:09:46 PDT 2003
Carl, Keith,
The problem is fixed.
Thanks for the fix. I'll try to implement the clip region function over
the next couple of days and send you a patch. Is it OK if just test the
Render part of it and send the patch?
Thanks for the fix,
-- Soorya
On Fri, 2003-07-25 at 13:32, Carl Worth wrote:
> On Jul 25, Keith Packard wrote:
> > Around 12 o'clock on Jul 25, Soorya Kuloor wrote:
> >
> > > I did a runtime profile and found that function
> > > _line_segs_intersect_ceil() in file cairo_traps.c goes into an almost
> > > infinite loop at the while loop at line 416.
> >
> > Cool -- it didn't infinite loop. We just rewrote that code to make sure
> > it was correct and are doing a linear search at sub-pixel resolution.
> > Changing that to a faster search should solve the performance
> > problem.
>
> Keith just did the error analysis and determined that the "search" is
> actually just a conditional increment.
>
> The fix is committed now.
>
> -Carl
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
More information about the cairo
mailing list