height = hwc_window_data->info.src_config.size.v;
format = hwc_window_data->info.src_config.format;
- if (!hwc_window_data->tqueue) {
- tqueue = tbm_surface_queue_create(NUM_BUFFERS, width, height, format, TBM_BO_SCANOUT);
- if (error)
- *error = TDM_ERROR_OPERATION_FAILED;
- RETURN_VAL_IF_FAIL(tqueue != NULL, NULL);
+ tqueue = tbm_surface_queue_create(NUM_BUFFERS, width, height, format, TBM_BO_SCANOUT);
+ if (error)
+ *error = TDM_ERROR_OPERATION_FAILED;
+ RETURN_VAL_IF_FAIL(tqueue != NULL, NULL);
- hwc_window_data->tqueue = tqueue;
- }
+ hwc_window_data->tqueue = tqueue;
if (error)
*error = TDM_ERROR_NONE;