tbm_error_e error = TBM_ERROR_NONE;
tbm_surface_data *surface_data = NULL;
- static int tbm_module_check_support_surface_data = 0;
-
TBM_RETURN_VAL_IF_FAIL(module, 0);
// check once support_surface_data or not.
- if (tbm_module_check_support_surface_data) {
+ if (module->check_surface_data) {
// return the value which already set.
return module->support_surface_data;
}
// check this only once
- tbm_module_check_support_surface_data = 1;
+ module->check_surface_data = 1;
if (module->type != TBM_MODULE_TYPE_HAL_TBM)
goto done;
typedef struct _tbm_module {
tbm_module_type type;
int support_surface_data;
+ int check_surface_data;
void *module_data; /* backend module */
tbm_bufmgr_backend backend; /* bufmgr backend (will be DEPRECATED) */