return EINA_FALSE;
base->type = E_COMP_WL_BUFFER_TYPE_TBM;
- base->w = tbm_surface_get_width(tsurface);
- base->h = tbm_surface_get_height(tsurface);
base->format = tbm_surface_get_format(tsurface);
base->tbm_surface = tsurface;
if (shmbuff)
{
base->type = E_COMP_WL_BUFFER_TYPE_SHM;
- base->w = wl_shm_buffer_get_width(shmbuff);
- base->h = wl_shm_buffer_get_height(shmbuff);
base->format = wl_shm_buffer_get_format(shmbuff);
base->shm_buffer = shmbuff;
}
else if (ds_single_pixel_buffer_v1_from_buffer(ds_buffer))
{
base->type = E_COMP_WL_BUFFER_TYPE_SINGLE_PIXEL;
- base->w = 1;
- base->h = 1;
base->format = WL_SHM_FORMAT_ARGB8888;
}
else if (!_e_comp_wl_buffer_tbm_type_get(base, ds_buffer))
return EINA_FALSE;
}
+ ds_buffer_get_size(ds_buffer, &base->w, &base->h);
base->resource = resource;
base->destroy_listener.notify = _e_buffer_cb_resource_destroy;