diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-02 10:47:32 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-02 12:47:14 +0100 |
commit | 87e659b887f4c738cfc91439efdac0d48fd294f0 (patch) | |
tree | 1e6d5738e627dbb67ce489e0bb7b17d52a067ed4 /src/sna/sna_trapezoids_boxes.c | |
parent | 2bf36d54ebdfa2a59bf7ef71134b953628ae5d50 (diff) |
sna: Use the threaded compositor for picture conversions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids_boxes.c')
-rw-r--r-- | src/sna/sna_trapezoids_boxes.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sna/sna_trapezoids_boxes.c b/src/sna/sna_trapezoids_boxes.c index ba318038..1cfad298 100644 --- a/src/sna/sna_trapezoids_boxes.c +++ b/src/sna/sna_trapezoids_boxes.c @@ -681,8 +681,8 @@ pixsolid_opacity(struct pixman_inplace *pi, *pi->bits = pi->color; else *pi->bits = mul_4x8_8(pi->color, opacity); - pixman_image_composite(pi->op, pi->source, NULL, pi->image, - 0, 0, 0, 0, pi->dx + x, pi->dy + y, w, h); + sna_image_composite(pi->op, pi->source, NULL, pi->image, + 0, 0, 0, 0, pi->dx + x, pi->dy + y, w, h); } static void @@ -936,18 +936,18 @@ pixmask_opacity(struct pixman_inplace *pi, uint8_t opacity) { if (opacity == 0xff) { - pixman_image_composite(pi->op, pi->source, NULL, pi->image, - pi->sx + x, pi->sy + y, - 0, 0, - pi->dx + x, pi->dy + y, - w, h); + sna_image_composite(pi->op, pi->source, NULL, pi->image, + pi->sx + x, pi->sy + y, + 0, 0, + pi->dx + x, pi->dy + y, + w, h); } else { *pi->bits = opacity; - pixman_image_composite(pi->op, pi->source, pi->mask, pi->image, - pi->sx + x, pi->sy + y, - 0, 0, - pi->dx + x, pi->dy + y, - w, h); + sna_image_composite(pi->op, pi->source, pi->mask, pi->image, + pi->sx + x, pi->sy + y, + 0, 0, + pi->dx + x, pi->dy + y, + w, h); } } |