evas sw x11 - xcb code has same changes as xlib with optimizations

This commit is contained in:
Carsten Haitzler 2015-10-06 14:47:08 +09:00
parent f05686c051
commit 785564f105
1 changed files with 6 additions and 3 deletions

View File

@ -30,8 +30,8 @@ static void _xcbob_sync(xcb_connection_t *conn);
/* local variables */
static Eina_List *_shmpool = NULL;
static int _shmsize = 0;
static int _shmlimit = (10 * 1024 * 1024);
static const unsigned int _shmcountlimit = 32;
static int _shmlimit = (20 * 1024 * 1024);
static const unsigned int _shmcountlimit = 128;
static Eina_Spinlock shmpool_lock;
#define SHMPOOL_LOCK() eina_spinlock_take(&shmpool_lock)
@ -1158,7 +1158,10 @@ _find_xcbob(xcb_connection_t *conn, xcb_visualtype_t *vis, int depth, int w, int
fitness = szdif;
}
}
if ((fitness > (100 * 100)) || (!xcbob))
if (
(fitness > (400 * 400)) ||
(!xcbob)
)
{
SHMPOOL_UNLOCK();
return evas_software_xcb_output_buffer_new(conn, vis, depth,