Eliminate mask_bits from all the scanline fetchers.
authorSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 19 May 2010 02:27:46 +0000 (22:27 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 9 Jun 2010 11:17:59 +0000 (07:17 -0400)
commit32bd31d677ab018849af5e0165d1dfacb1e01ed0
tree586ac69953891bcafc52cdb4a29caa9cd21e2628
parent78778e5963c948de5ce5f7c5a2a3bb9f279a8eda
Eliminate mask_bits from all the scanline fetchers.

Back in the day, the mask_bits argument was used to distinguish
between masks used for component alpha (where it was 0xffffffff) and
masks for unified alpha (where it was 0xff000000). In this way, the
fetchers could check if just the alpha channel was 0 and in that case
avoid fetching the source.

However, we haven't actually used it like that for a long time; it is
currently always either 0xffffffff or 0 (if the mask is NULL). It also
doesn't seem worthwhile resurrecting it because for premultiplied
buffers, if alpha is 0, then so are the color channels
normally.

This patch eliminates the mask_bits and changes the fetchers to just
assume it is 0xffffffff if mask is non-NULL.
pixman/pixman-access.c
pixman/pixman-bits-image.c
pixman/pixman-conical-gradient.c
pixman/pixman-general.c
pixman/pixman-image.c
pixman/pixman-linear-gradient.c
pixman/pixman-private.h
pixman/pixman-radial-gradient.c
pixman/pixman-solid-fill.c