diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-14 16:18:54 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-14 16:18:54 -0400 |
commit | c7ca355ec50464d97e343abc2c79226f9e8919cd (patch) | |
tree | cd86662fd86970d57646c4ca3b08a51d65cfbc34 | |
parent | c2d16000b9e05e0c015abb07eef264b885e138d4 (diff) |
compositor: Only call weston_surface_update_transform from repaint
-rw-r--r-- | src/compositor.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/compositor.c b/src/compositor.c index e0e0bee..228ef95 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; |