change the name from get_from_hal_surface to get_from_surface_data.
Change-Id: I09504455e35cc9cb77e78675db44cbb7e21392cb
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);
/* 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);
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 */
};
/**
}
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;
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 */
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);