Simplify shm buffer handling
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Mar 2012 19:56:39 +0000 (15:56 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 26 Mar 2012 23:27:35 +0000 (19:27 -0400)
commit9629fe32060cda8ebad45f80fb480a26317c67c6
tree6ec062b8ae6d60a6de4deffdd9de6f047bde4348
parent42b4f801164241eb31f9618f35aa0b8614e700c3
Simplify shm buffer handling

There was a lot of code here to do a lot of work we didn't need to do.
If we damage a surface with a shm buffer attached, all we need to do
is to re-upload the damaged region to the texture.  As for drm buffers,
we don't assume anything changes on attach and only update the
regions the client tells us to update in the damage request.
clients/simple-shm.c
clients/simple-touch.c
clients/smoke.c
clients/window.c
src/compositor.c
src/compositor.h