Only regard images as pixbufs if they have identity transformations
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 7 Oct 2012 21:58:32 +0000 (17:58 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 7 Oct 2012 22:00:09 +0000 (18:00 -0400)
commit15b153d633fcfce886c30fee98599fddbf019ee8
tree52cad53904d4778dccbf96e1a19e04f058fd3b70
parent3d81d89c292058522cce91338028d9b4c4a23c24
Only regard images as pixbufs if they have identity transformations

In order for a src/mask pair to be considered a pixbuf, they have to
have identical transformations, but we don't check for that. Since the
only fast paths we have for pixbufs require identity transformations,
it sufficies to check that both source and mask are
untransformed.

This is also the reason that this bug can't be triggered by any test
code - if the source and mask had different transformations, we would
consider them a pixbuf, but then wouldn't take the fast path because
at least one of the transformations would be different from the
identity.
pixman/pixman.c