buffer by default).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83281
{
Wl_Swapper *ws;
int i = 0;
+ char *num_buffers;
/* try to allocate a new swapper */
if (!(ws = calloc(1, sizeof(Wl_Swapper))))
/* double buffer by default */
ws->buff_num = 2;
+ /* check for buffer override number */
+ if ((num_buffers = getenv("EVAS_WAYLAND_SHM_BUFFERS")))
+ {
+ int num = 0;
+
+ num = atoi(num_buffers);
+
+ if (num <= 0) num = 1;
+ if (num > 3) num = 3;
+
+ ws->buff_num = num;
+ }
+
for (i = 0; i < ws->buff_num; i++)
{
/* try to create new internal Wl_Buffer */