Change-Id: Ibe7b74943f5d302f7d5b3e4771903fd3bb7b1d1a
return 1;
}
+int
+tbm_bufmgr_bind_native_display(tbm_bufmgr bufmgr, void *NativeDisplay)
+{
+ TBM_RETURN_VAL_IF_FAIL(TBM_BUFMGR_IS_VALID(bufmgr), 0);
+
+ int ret;
+
+ pthread_mutex_lock(&bufmgr->lock);
+
+ ret = bufmgr->backend->bufmgr_bind_native_display(bufmgr, NativeDisplay);
+ if (!ret) {
+ pthread_mutex_unlock(&bufmgr->lock);
+ return 0;
+ }
+
+ pthread_mutex_unlock(&bufmgr->lock);
+
+ return 1;
+}
+
*/
int (*bo_get_flags)(tbm_bo bo);
+ /**
+ * @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 (*bufmgr_bind_native_display)(tbm_bufmgr bufmgr, void *NativeDisplay);
+
/* Padding for future extension */
void (*reserved1)(void);
void (*reserved2)(void);