%bcond_with wayland
Name: libtbm
-Version: 1.1.7
+Version: 1.1.8
Release: 1
License: MIT
Summary: The library for Tizen Buffer Manager
bo->priv = bo_priv;
bo->default_handle.u32 = 0;
+ if (bufmgr->backend->bo_get_flags)
+ bo->flags = bufmgr->backend->bo_get_flags (bo);
+ else
+ bo->flags = TBM_BO_DEFAULT;
+
/* init bo state */
if (!_tbm_bo_init_state (bo, CACHE_OP_IMPORT))
{
bo->priv = bo_priv;
bo->default_handle.u32 = 0;
+ if (bufmgr->backend->bo_get_flags)
+ bo->flags = bufmgr->backend->bo_get_flags (bo);
+ else
+ bo->flags = TBM_BO_DEFAULT;
+
/* init bo state */
if (!_tbm_bo_init_state (bo, CACHE_OP_IMPORT))
{
return capability;
}
+int
+tbm_bo_get_flags (tbm_bo bo)
+{
+ TBM_RETURN_VAL_IF_FAIL(_tbm_bo_is_valid(bo), 0);
+
+ return bo->flags;
+}
*/
unsigned int tbm_bufmgr_get_capability (tbm_bufmgr bufmgr);
+/**
+ * @brief Gets the tbm bo flags.
+ * @since_tizen 2.4
+ * @param[in] bo : the buffer object
+ * @return the tbm bo flags
+ * @see TBM_BO_FLAGS
+ * @par Example
+ @code
+ #include <tbm_bufmgr.h>
+
+ int bufmgr_fd;
+ tbm_bufmgr bufmgr;
+ tbm_bo;
+ int flags;
+
+ bufmgr = tbm_bufmgr_init (bufmgr_fd);
+ bo = tbm_bo_alloc (bufmgr, 128 * 128, TBM_BO_DEFAULT);
+ flags = tbm_bo_get_flags (bo);
+
+ ...
+
+ tbm_bo_unref (bo);
+ tbm_bufmgr_deinit (bufmgr);
+
+ @endcode
+ */
+int tbm_bo_get_flags (tbm_bo bo);
+
#ifdef __cplusplus
}
#endif
*/
int (*surface_get_num_bos) (tbm_format format);
+ /**
+ * @brief get the tbm flags of memory type
+ * @param[in] bo : the buffer object
+ * @see #TBM_BO_FLAGS
+ * @return tbm flags of memory type is this function succeeds, otherwise 0.
+ */
+ int (*bo_get_flags) (tbm_bo bo);
+
/* Padding for future extension */
void (*reserved1) (void);
void (*reserved2) (void);