compositor: ref-count weston_surface instances
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Tue, 13 Aug 2013 21:10:14 +0000 (23:10 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 13 Aug 2013 22:19:50 +0000 (15:19 -0700)
commit13b85bdb65088d520d41727e48a71377b4b97213
tree212548c0cf2e900e187932dab92cd1726853f8d4
parentb1c02a80ef40699d65f047b9a857171cb8670472
compositor: ref-count weston_surface instances

This allows a surface to live on after its resource has been
destroyed.  The ref-count can be increased in a resource destroy signal
listener, to keep the surface around for a destroy animation, for example.
src/compositor.c
src/compositor.h