Make the operator strength reduction constant time.
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Fri, 18 Sep 2009 18:10:31 +0000 (14:10 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 14 Mar 2010 16:11:47 +0000 (12:11 -0400)
commit7fe35f0e6b660f5667ff653f3b753bc3e5d07901
tree3dbf1752b4618118d862e85bf2e519627c70c3a8
parent54e39e00386fd2fd0eb76ead6396ddb93f1cf6c2
Make the operator strength reduction constant time.

By extending the operator information table to cover all operators we
can replace the loop with a table look-up. At the same time, base the
operator optimization on the computed flags rather than the ones in
the image struct.

Finally, as an extra optimization, we no longer ignore the case where
there is a mask. Instead we consider the source opaque if both source
and mask are opaque, or if the source is opaque and the mask is
missing.
pixman/pixman.c