if (ret != TDM_ERROR_NONE)
goto done;
- hwc_commit_handler->use_vblank = 1;
private_output->layer_waiting_vblank = 1;
/* tdm_vblank APIs is for server. it should be called in unlock status*/
_pthread_mutex_lock(&private_display->lock);
if (ret != TDM_ERROR_NONE) {
if (!TDM_OUTPUT_DPMS_VSYNC_IS_OFF(private_output->current_dpms_value)) {
- hwc_commit_handler->use_vblank = 0;
private_output->layer_waiting_vblank = 0;
}
}
hwc_commit_handler->func = func;
hwc_commit_handler->user_data = user_data;
hwc_commit_handler->owner_tid = syscall(SYS_gettid);
+ if (hwc_use_vblank)
+ hwc_commit_handler->use_vblank = 1;
if (private_module == private_display->virtual_module) {
private_voutput = private_output->private_voutput;