From c7ca355ec50464d97e343abc2c79226f9e8919cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 14 May 2012 16:18:54 -0400 Subject: [PATCH] compositor: Only call weston_surface_update_transform from repaint --- src/compositor.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index e0e0beeb..228ef951 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -438,8 +438,6 @@ WL_EXPORT void weston_surface_to_global_float(struct weston_surface *surface, GLfloat sx, GLfloat sy, GLfloat *x, GLfloat *y) { - weston_surface_update_transform(surface); - surface_to_global_float(surface, sx, sy, x, y); } @@ -502,8 +500,6 @@ weston_surface_from_global_fixed(struct weston_surface *surface, { GLfloat sxf, syf; - weston_surface_update_transform(surface); - surface_from_global_float(surface, wl_fixed_to_double(x), wl_fixed_to_double(y), @@ -518,8 +514,6 @@ weston_surface_from_global(struct weston_surface *surface, { GLfloat sxf, syf; - weston_surface_update_transform(surface); - surface_from_global_float(surface, x, y, &sxf, &syf); *sx = floorf(sxf); *sy = floorf(syf); @@ -530,8 +524,6 @@ weston_surface_damage_rectangle(struct weston_surface *surface, int32_t sx, int32_t sy, int32_t width, int32_t height) { - weston_surface_update_transform(surface); - if (surface->transform.enabled) { pixman_region32_t box; surface_compute_bbox(surface, sx, sy, width, height, &box); @@ -551,8 +543,6 @@ weston_surface_damage_rectangle(struct weston_surface *surface, WL_EXPORT void weston_surface_damage(struct weston_surface *surface) { - weston_surface_update_transform(surface); - pixman_region32_union(&surface->damage, &surface->damage, &surface->transform.boundingbox); @@ -1213,8 +1203,6 @@ weston_surface_assign_output(struct weston_surface *es) uint32_t max, area, mask; pixman_box32_t *e; - weston_surface_update_transform(es); - new_output = NULL; max = 0; mask = 0;