matrix: Do not need to iteratively refine conversion for unity matrices.

If the scale factors on the matrix are unity, then the conversion from a
cairo_matrix_t to a pixman_matrix_t is exact (within numerical
restrictions).
This commit is contained in:
Chris Wilson 2010-01-22 15:37:25 +00:00
parent 13c56800ca
commit 6bfcf3ea55

View file

@ -915,7 +915,7 @@ _cairo_matrix_to_pixman_matrix (const cairo_matrix_t *matrix,
* that point.
*/
if (_cairo_matrix_is_translation (matrix))
if (_cairo_matrix_has_unity_scale (matrix))
return;
/* Note: If we can't invert the transformation, skip the adjustment. */