From: SooChan Lim Date: Tue, 22 Jun 2021 02:52:25 +0000 (+0900) Subject: tbm_bo: change the name of the member vars X-Git-Tag: accepted/tizen/unified/20210625.170433~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5820235bd1ddbe387e23c2db90690e753572421a;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_bo: change the name of the member vars change the name from get_from_hal_surface to get_from_surface_data. Change-Id: I09504455e35cc9cb77e78675db44cbb7e21392cb --- diff --git a/src/tbm_bo.c b/src/tbm_bo.c index 6bb9198..0220d9a 100644 --- a/src/tbm_bo.c +++ b/src/tbm_bo.c @@ -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); diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index d79bdf3..9af309d 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -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); diff --git a/src/tbm_bufmgr_int.h b/src/tbm_bufmgr_int.h index ed6a2a5..70bc617 100644 --- a/src/tbm_bufmgr_int.h +++ b/src/tbm_bufmgr_int.h @@ -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 */ }; /** diff --git a/src/tbm_module.c b/src/tbm_module.c index 7b2fb74..cf24265 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -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 */ diff --git a/src/tbm_module.h b/src/tbm_module.h index 6d0b9a1..6a00338 100644 --- a/src/tbm_module.h +++ b/src/tbm_module.h @@ -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);