usecase: if compositor wants direct-rendering with client's wl_buffer, compositor can use gbm_bo_import with wl_buffer.
Change-Id: I05c89a1aa76eec0b9b3ea24fc78fdd2583e44225
switch (type)
{
case GBM_BO_IMPORT_WL_BUFFER:
-#ifndef TPL_USING_WAYLAND_TBM
+#ifdef TPL_USING_WAYLAND_TBM
+ tbm_surf = wayland_tbm_server_get_surface(NULL, (struct wl_resource*)buffer);
+ tbo = tbm_surface_internal_get_bo(tbm_surf, 0);
+#else
drm_buffer = wayland_drm_buffer_get(NULL, (struct wl_resource *)buffer);
if (drm_buffer)
{