tbm_bo: change the name of the member vars 04/260304/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 22 Jun 2021 02:52:25 +0000 (11:52 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 22 Jun 2021 02:52:25 +0000 (11:52 +0900)
change the name from get_from_hal_surface to get_from_surface_data.

Change-Id: I09504455e35cc9cb77e78675db44cbb7e21392cb

src/tbm_bo.c
src/tbm_bufmgr.c
src/tbm_bufmgr_int.h
src/tbm_module.c
src/tbm_module.h

index 6bb9198..0220d9a 100644 (file)
@@ -871,7 +871,7 @@ _tbm_bo_free(tbm_bo bo)
                bo->lock_cnt--;
        }
 
-       tbm_module_bo_free(bo->bufmgr->module, bo, bo->bo_data, bo->get_from_hal_surface);
+       tbm_module_bo_free(bo->bufmgr->module, bo, bo->bo_data, bo->get_from_surface_data);
 
        _tbm_bo_deinit(bo);
 
index d79bdf3..9af309d 100644 (file)
@@ -999,7 +999,7 @@ tbm_bufmgr_internal_alloc_bo_with_bo_data(tbm_bufmgr bufmgr, tbm_backend_bo_data
                /* LCOV_EXCL_STOP */
        }
        bo->bo_data = bo_data;
-       bo->get_from_hal_surface = 1;
+       bo->get_from_surface_data = 1;
 
        // return an existed bo if the bo is already created with the same bo_data.
        bo2 = tbm_bufmgr_internal_find_bo(bufmgr, bo);
index ed6a2a5..70bc617 100644 (file)
@@ -189,7 +189,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 */
+       int get_from_surface_data;       /* bo_data has be detroyed by surface_data */
 };
 
 /**
index 7b2fb74..cf24265 100644 (file)
@@ -975,7 +975,7 @@ tbm_surface_data_export(tbm_backend_surface_data *surface_data, tbm_error_e *err
 }
 
 void
-tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_hal_surface)
+tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_surface_data)
 {
        tbm_backend_bo_func *bo_func = NULL;
        tbm_bufmgr_backend backend = NULL;
@@ -987,7 +987,7 @@ tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data,
        switch (module->type) {
        case TBM_MODULE_TYPE_HAL_TBM:
                // call hal_tbm_bo_free when bo is created by tbm_bo_alloc api.
-               if (!get_from_hal_surface)
+               if (!get_from_surface_data)
                        hal_tbm_bo_free(bo_data);
                break;
 /* LCOV_EXCL_START */
index 6d0b9a1..6a00338 100644 (file)
@@ -97,7 +97,7 @@ tbm_error_e               tbm_surface_data_get_plane_data(tbm_backend_surface_da
 tbm_backend_bo_data     **tbm_surface_data_get_bo_data_array(tbm_backend_surface_data *surface_data, int *num_bos, tbm_error_e *error);
 tbm_surface_buffer_data  *tbm_surface_data_export(tbm_backend_surface_data *surface_data, tbm_error_e *error);
 
-void          tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_hal_surface);
+void          tbm_module_bo_free(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int get_from_surface_data);
 int           tbm_module_bo_get_size(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
 int           tbm_module_bo_get_memory_types(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, tbm_error_e *error);
 tbm_bo_handle tbm_module_bo_get_handle(tbm_module *module, tbm_bo bo, tbm_backend_bo_data *bo_data, int device, tbm_error_e *error);