ob->depth = info->info.depth;
ob->priv.destination_alpha = info->info.destination_alpha;
- /* default to double buffer */
- ob->num_buff = 2;
+ /* default buffer */
+ if (getenv("EVAS_WAYLAND_USE_SHMBUF"))
+ ob->num_buff = 2;
+ else
+ ob->num_buff = 3;
/* check for any 'number of buffers' override in the environment */
if ((num = getenv("EVAS_WAYLAND_SHM_BUFFERS")))
}
Eina_Bool
-_evas_tbmbuf_surface_create(Surface *s, int w, int h, int num_buff EINA_UNUSED)
+_evas_tbmbuf_surface_create(Surface *s, int w, int h, int num_buff)
{
Tbmbuf_Surface *surf = NULL;
goto err;
}
+ /* check num_buff, not yet support single buffer */
+ if (num_buff == 1) num_buff = 2;
+
/* create surface buffers */
if (!s->info->info.tbm_queue)
{
s->info->info.tbm_queue = sym_wayland_tbm_client_create_surface_queue(surf->tbm_client,
surf->wl_surface,
- 3,
+ num_buff,
w, h,
TBM_FORMAT_ARGB8888);
surf->tbm_queue = s->info->info.tbm_queue;