summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-03-24 11:36:16 -0500
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-03-27 09:17:26 +0200
commita5855adacec9cd2c0b50d0f88156585c3ae0cd2e (patch)
tree45e039773df3f170c192c338735a359678a15c32 /src
parent7cb916e285feb8b03e7cc7bde6afb3c17fe2e072 (diff)
downloadweston-a5855adacec9cd2c0b50d0f88156585c3ae0cd2e.tar.gz
weston-a5855adacec9cd2c0b50d0f88156585c3ae0cd2e.tar.bz2
weston-a5855adacec9cd2c0b50d0f88156585c3ae0cd2e.zip
pixman-renderer: use pre-computed inverse output matrix
We've already computer the inverse of the output matrix, so we don't need to calculate it again here. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/pixman-renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
index a4796845..c650d556 100644
--- a/src/pixman-renderer.c
+++ b/src/pixman-renderer.c
@@ -167,7 +167,7 @@ pixman_renderer_compute_transform(pixman_transform_t *transform_out,
/* Set up the source transformation based on the surface
position, the output position/transform/scale and the client
specified buffer transform/scale */
- weston_matrix_invert(&matrix, &output->matrix);
+ matrix = output->inverse_matrix;
if (ev->transform.enabled) {
weston_matrix_multiply(&matrix, &ev->transform.inverse);