[cairo] [Bug 43397] EXTEND_NONE is used instead of EXTEND_PAD when src sample area is entirely within the surface

Bill Spitzak spitzak at gmail.com
Fri Dec 9 11:59:16 PST 2011


The reason the hardware is supporting EXTEND_PAD is because no software 
uses what Cairo is calling "EXTEND_NONE".

The desired behavior that users of Cairo expect for any setting that is 
"black outside the image" is that either EXTEND_PAD or EXTEND_REFLECT is 
used to draw the image, but the mask is temporarily intersected with the 
antialiased parallelogram that is the boundary of the source surface 
transformed by the surface transform (or possibly it should act like the 
path is intersected with this parallelogram).

I would guess that this would move all handling of EXTEND_NONE out of 
the source sampling code and over to some modification of the masking 
code. Therefore the sampling would always be set to PAD/REFLECT/REPEAT.

I feel this needs some serious looking into. I believe that changing the 
EXTEND_NONE setting of Cairo to act this way will be an improvement 
greatly appreciated by everybody.

On 12/09/2011 11:38 AM, bugzilla-daemon at freedesktop.org wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=43397
>
> Konstantin Svist<fry.kun at gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|RESOLVED                    |REOPENED
>           Resolution|FIXED                       |
>
> --- Comment #8 from Konstantin Svist<fry.kun at gmail.com>  2011-12-09 11:38:58 PST ---
> please keep discussing
>



More information about the cairo mailing list