compositor: Don't record surface damage when we move or transform surfaces
surface->damage is for when the contents of the surface changes. Instead, use weston_surface_damage_below() to repaint the damaged area. We avoid unecessary uploading shm and hw cursor contents this way.
This commit is contained in:
+1
-4
@@ -447,10 +447,7 @@ weston_surface_update_transform(struct weston_surface *surface)
|
|||||||
weston_surface_update_transform_disable(surface);
|
weston_surface_update_transform_disable(surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* weston_surface_damage() without update */
|
weston_surface_damage_below(surface);
|
||||||
pixman_region32_union_rect(&surface->damage, &surface->damage,
|
|
||||||
0, 0, surface->geometry.width,
|
|
||||||
surface->geometry.height);
|
|
||||||
|
|
||||||
if (weston_surface_is_mapped(surface))
|
if (weston_surface_is_mapped(surface))
|
||||||
weston_surface_assign_output(surface);
|
weston_surface_assign_output(surface);
|
||||||
|
|||||||
Reference in New Issue
Block a user