move the position of the codes 64/172364/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Mar 2018 06:24:26 +0000 (15:24 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 13 Mar 2018 10:02:29 +0000 (19:02 +0900)
Change-Id: I4fbb55e67ca33bf26efc54f60d9a15761243471a

src/tbm_bufmgr_int.h
src/tbm_type_int.h

index ea58185..4aeb3ab 100644 (file)
@@ -48,14 +48,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #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;
@@ -206,14 +206,15 @@ struct _tbm_bufmgr {
        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 */
 };
 
 /**
index 0b3bd42..0100ea4 100644 (file)
@@ -114,16 +114,6 @@ enum TBM_BUFMGR_CAPABILITY {
 };
 
 /**
- * @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
  */
@@ -167,6 +157,8 @@ typedef enum {
  */
 #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
@@ -203,6 +195,16 @@ enum TBM_BO_FLAGS {
 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
  */