projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2ada9e
)
pixman_image_composite: Reduce opaque masks to NULL
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Wed, 31 Oct 2012 17:14:07 +0000
(13:14 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Fri, 9 Nov 2012 21:13:31 +0000
(16:13 -0500)
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.
pixman/pixman.c
patch
|
blob
|
history
diff --git
a/pixman/pixman.c
b/pixman/pixman.c
index
e3b6516
..
e0ccd87
100644
(file)
--- 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;