diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-10-31 13:14:07 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-11-09 16:13:31 -0500 |
commit | 400436dc52450359de35cac9efa6aea631cf34e9 (patch) | |
tree | d6b42ba0c838b268eb28a0d17769e0131db78315 | |
parent | f2ada9e63fdd1034766e86d71008e0d819074f27 (diff) |
pixman_image_composite: Reduce opaque masks to NULL
When the mask is known to be opaque, we might as well reduce it to
NULL to take advantage of the various fast paths that operate on NULL
masks.
-rw-r--r-- | pixman/pixman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman.c b/pixman/pixman.c index e3b6516..e0ccd87 100644 --- a/pixman/pixman.c +++ b/pixman/pixman.c @@ -587,7 +587,7 @@ pixman_image_composite32 (pixman_op_t op, src_format = src->common.extended_format_code; src_flags = src->common.flags; - if (mask) + if (mask && !(mask->common.flags & FAST_PATH_IS_OPAQUE)) { mask_format = mask->common.extended_format_code; mask_flags = mask->common.flags; |