tbm_bo: add get_from_hal_surface flag at tbm_bo
[platform/core/uifw/libtbm.git] / src / tbm_bufmgr_int.h
index fdbb16c..4b6644e 100644 (file)
@@ -186,6 +186,7 @@ struct _tbm_bo {
        unsigned int map_cnt;            /* device map count */
 
        tbm_backend_bo_data *bo_data;    /* bo data of the backend module */
+       int get_from_hal_surface;        /* bo_data has be detroyed by hal backend */
 };
 
 /**
@@ -258,6 +259,8 @@ struct _tbm_surface {
                int width;
                int height;
        } damage;
+
+       hal_tbm_surface *hal_surface; // hal_tbm_surface
 };
 
 typedef struct {
@@ -314,10 +317,11 @@ void _tbm_set_last_result(tbm_error_e err);
 void _tbm_bufmgr_mutex_lock(void);
 void _tbm_bufmgr_mutex_unlock(void);
 
-tbm_bo tbm_bo_alloc_with_format(tbm_bufmgr bufmgr, int format, int bo_idx, int width,
+tbm_bo tbm_bo_alloc_with_format(tbm_bufmgr bufmgr, int format, int bo_idx, int width, int bpp,
                                                int height, tbm_bo_memory_type flags, tbm_error_e *error);
 tbm_bo tbm_bo_alloc_with_tiled_format(tbm_bufmgr bufmgr, int width, int height, int bpp, int format,
                                                        tbm_bo_memory_type flags, int bo_idx, tbm_error_e *error);
 tbm_bo tbm_bo_alloc_with_surface(tbm_bufmgr bufmgr, int width, int height, int format, int flags, int bo_idx);
+tbm_bo tbm_bo_alloc_with_bo_data(tbm_bufmgr bufmgr, tbm_backend_bo_data *bo_data, int flags);
 
 #endif                                                 /* _TBM_BUFMGR_INT_H_ */