[cairo] Optimize horizontal/vertical gradients

Owen Taylor otaylor at redhat.com
Sun Feb 13 20:16:01 PST 2005


Quick 30 second thought that makes a big difference for pure
vertical/horizontal gradients. It's possible that there should
be some epsilon in the tests, to handle round-off errors in
90 degree rotations and the like, maybe something like

  fabs (p2.x - p1.x) < EPSILON * fabs (p2.y - p1.y)

?

Regards,
					Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: linear-pattern.patch
Type: text/x-patch
Size: 1102 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050213/27eef379/linear-pattern.bin


More information about the cairo mailing list