TBM_LOG("Not implemented yet.\n");
}
+/* internal function */
+int
+_tbm_bo_set_surface (tbm_bo bo, tbm_surface_h surface)
+{
+ TBM_RETURN_VAL_IF_FAIL (_tbm_bo_is_valid(bo), 0);
+
+ bo->surface = surface;
+
+ return 1;
+}
+
+
struct list_head item_link; /* link of bo */
tbm_bo_handle default_handle; /*default handle */
+
+ tbm_surface_h surface; /* tbm_surface */
+
};
/**
int tbm_bufmgr_get_drm_fd_x11(void);
int tbm_bufmgr_get_drm_fd_wayland(void);
+int _tbm_bo_set_surface (tbm_bo bo, tbm_surface_h surface);
+
/* functions for mutex */
int tbm_surface_internal_get_info (tbm_surface_h surface, int opt, tbm_surface_info_s *info, int map);
void tbm_surface_internal_unmap (tbm_surface_h surface);
for (i = 0; i < surface->num_bos; i++)
{
+ surface->bos[i]->surface = NULL;
+
tbm_bo_unref (surface->bos[i]);
surface->bos[i] = NULL;
}
_tbm_surface_mutex_unlock();
return NULL;
}
+ _tbm_bo_set_surface(surf->bos[i], surf);
+
}
LIST_ADD (&surf->item_link, &mgr->surf_list);
goto bail1;
surf->bos[i] = tbm_bo_ref(bos[i]);
+ _tbm_bo_set_surface(bos[i], surf);
}
LIST_ADD (&surf->item_link, &mgr->surf_list);