mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
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:
parent
9c7a8cc663
commit
31bd6c7ab1
4 changed files with 82 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue