diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2015-03-24 11:36:16 -0500 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2015-03-27 09:17:26 +0200 |
commit | a5855adacec9cd2c0b50d0f88156585c3ae0cd2e (patch) | |
tree | 45e039773df3f170c192c338735a359678a15c32 /src | |
parent | 7cb916e285feb8b03e7cc7bde6afb3c17fe2e072 (diff) | |
download | weston-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.c | 2 |
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); |