window: convert shm path to toysurface
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 19 Nov 2012 15:15:59 +0000 (17:15 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Nov 2012 20:49:37 +0000 (15:49 -0500)
commit9943686be359a6e1dc982bb44dd9dde9bb21e7a2
treec9949409d010048459587fa046adcbb0be5875cd
parent03fc316000cb24930ecd63f376cd5850434b7bca
window: convert shm path to toysurface

Implement shm_surface as a sub-class of toysurface, and unify the
toysurface call sites removing most buffer type specific branching.

Do not destroy and create a surface, if the size does not change.

The resizing optimization of shm surfaces is retained, but the pool is
moved from struct window to struct shm_surface, since it does not apply
to egl_window_surface.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c