evas-wayland-shm: Reduce size of resize pool during resize events
authorChris Michael <cp.michael@samsung.com>
Thu, 1 Oct 2015 19:51:21 +0000 (15:51 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 1 Oct 2015 20:02:16 +0000 (16:02 -0400)
Summary: We really don't need to be allocating a shm pool this large
during resize, so reduce the size of the pool.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_shm.c

index 1e730a4..593a8ae 100644 (file)
@@ -395,7 +395,7 @@ _evas_shm_surface_reconfigure(Shm_Surface *surface, int dx, int dy, int w, int h
         if ((resize) && (!surface->leaf[i].resize_pool))
           {
              surface->leaf[i].resize_pool = 
-               _shm_pool_create(surface->shm, 10 * 1024 * 1024);
+               _shm_pool_create(surface->shm, 6 * 1024 * 1024);
           }
 
         if (!_shm_leaf_create(surface, &surface->leaf[i], w, h))