[PATCH weston 4/4] pixman-renderer: use pre-computed inverse output matrix

Derek Foreman derekf at osg.samsung.com
Tue Mar 24 09:36:16 PDT 2015


We've already computer the inverse of the ouput matrix, so we
don't need to calculate it again here.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 src/pixman-renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pixman-renderer.c b/src/pixman-renderer.c
index a479684..c650d55 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);
-- 
2.1.4



More information about the wayland-devel mailing list