Re: [PATCH] window: use only one shm pool for all the cursor images

2012-05-07 Thread Kristian Høgsberg
On Mon, May 7, 2012 at 2:34 PM, Ander Conselvan de Oliveira wrote: > Cursor images are fairly small and having one pool for each image adds > a lot of unnecessary overhead. Instead, create one large pool and > allocated all cursor images from that. > > In order to do that, however, the code that c

[PATCH] window: use only one shm pool for all the cursor images

2012-05-07 Thread Ander Conselvan de Oliveira
Cursor images are fairly small and having one pool for each image adds a lot of unnecessary overhead. Instead, create one large pool and allocated all cursor images from that. In order to do that, however, the code that creates shm surface needed some refactoring. This patch adds a new struct shm_