#include <errno.h>
#include <assert.h>
#include <pthread.h>
+#include <dlog.h>
#include <tbm_bufmgr.h>
#include <tbm_bo.h>
#include <tbm_surface.h>
#include <tbm_surface_internal.h>
-#include <tbm_bufmgr_backend.h>
#include <tbm_surface_queue.h>
#include <tbm_log.h>
-#include <dlog.h>
+#include <tbm_bufmgr_backend.h>
extern tbm_bufmgr gBufMgr;
extern int b_dump_queue;
int fd; /* bufmgr fd */
tbm_bufmgr_bo_lock_type bo_lock_type; /* lock_type of bufmgr */
int capabilities; /* capabilities of bufmgr */
+ int display_server; /* used by display server */
unsigned int bo_cnt; /* number of bos */
struct list_head bo_list; /* list of bos belonging to bufmgr */
struct list_head surf_list; /* list of surfaces belonging to bufmgr */
struct list_head surf_queue_list; /* list of surface queues belonging to bufmgr */
struct list_head debug_key_list; /* list of debug data key list belonging to bufmgr */
+
void *module_data;
tbm_bufmgr_backend backend; /* bufmgr backend */
- int display_server; /* used by display server */
};
/**
};
/**
- * @brief Enumeration of buffer manager lock try for bo
- * @since_tizen 5.0
- */
-typedef enum {
- TBM_BUFMGR_BO_LOCK_TYPE_NEVER = 0, /**< the bufmgr do not try to lock the bos when the tbm_bo_map is called. */
- TBM_BUFMGR_BO_LOCK_TYPE_ONCE, /**< the bufmgr tries to lock the bos only once when the tbm_bo_map is called. */
- TBM_BUFMGR_BO_LOCK_TYPE_ALWAYS, /**< the bufmgr always tries to lock the bos when the tbm_bo_map is called. */
-} tbm_bufmgr_bo_lock_type;
-
-/**
* @brief Definition for the device type to get the default handle
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
*/
#define TBM_OPTION_VENDOR (0xffff0000)
+
+
/**
* @brief tbm_bo_handle abstraction of the memory handle by TBM_DEVICE_TYPE
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
typedef void (*tbm_data_free) (void *user_data);
/**
+ * @brief Enumeration of buffer manager lock try for bo
+ * @since_tizen 5.0
+ */
+typedef enum {
+ TBM_BUFMGR_BO_LOCK_TYPE_NEVER = 0, /**< the bufmgr do not try to lock the bos when the tbm_bo_map is called. */
+ TBM_BUFMGR_BO_LOCK_TYPE_ONCE, /**< the bufmgr tries to lock the bos only once when the tbm_bo_map is called. */
+ TBM_BUFMGR_BO_LOCK_TYPE_ALWAYS, /**< the bufmgr always tries to lock the bos when the tbm_bo_map is called. */
+} tbm_bufmgr_bo_lock_type;
+
+/**
* @brief Enumeration of the trace log for debug
* @since_tizen 5.0
*/