Use pixman regions to reduce repainting

For now, we just use glScissor and clip to the extent of the damage region,
but we can do even better by clipping the repaint to the region rectangles.
This commit is contained in:
Kristian Høgsberg 2011-02-13 13:00:51 -05:00
parent 9c7a8cc663
commit 31bd6c7ab1
4 changed files with 82 additions and 14 deletions

View file

@ -40,9 +40,11 @@ move_grab_motion(struct wl_grab *grab,
struct wlsc_move_grab *move = (struct wlsc_move_grab *) grab;
struct wlsc_surface *es = move->surface;
wlsc_surface_damage(es);
es->x = x + move->dx;
es->y = y + move->dy;
wlsc_surface_update_matrix(es);
wlsc_surface_damage(es);
}
static void