[Pixman] [cairo] [PATCHES] gradient color-tolerance/performance work

Andrea Canciani ranma42 at gmail.com
Tue Apr 6 10:40:28 PDT 2010


On Tue, Apr 6, 2010 at 6:07 PM, Chris Toshok <toshok at gmail.com> wrote:
> On 04/06/2010 04:58 AM, Adrian Johnson wrote:
>>
>> Something like
>>
>>  cairo_pattern_set_color_tolerance (double error)
>>
>> would be more flexible and could be used directly by the PS/PDF backends.
>
> done.  the cairo change now uses a double for color tolerance, while pixman
> retains the enum. _cairo_color_tolerance_to_pixman_color_tolerance now maps
> 0.0 => LOW, (0.0,0.5) => MEDIUM, [0.5,1.0] => HIGH.  0.0 is the default.
If LOW, MEDIUM, HIGH are defined as in your first mail, this mapping breaks
the assumption that the error should be no more than the given tolerance.
Would it be possible to change pixman to respect it?
Andrea Canciani


More information about the Pixman mailing list