private_vblank->vrefresh, private_vblank->fps, private_vblank->fps_changeable);
}
+/* LCOV_EXCL_START */
static void
_tdm_vblank_cb_output_change(tdm_output *output, tdm_output_change_type type,
tdm_value value, void *user_data)
break;
}
}
+/* LCOV_EXCL_STOP */
EXTERN tdm_error
tdm_vblank_set_client_vblank_fps(unsigned int pid, const char *name, unsigned int fps)
if (!vblank_list_inited) {
if (pthread_mutex_init(&valid_list_lock, NULL)) {
+ /* LCOV_EXCL_START */
TDM_ERR("mutex init failed: %m");
if (error)
*error = TDM_ERROR_OPERATION_FAILED;
return NULL;
+ /* LCOV_EXCL_STOP */
}
LIST_INITHEAD(&valid_vblank_list);
LIST_INITHEAD(&valid_wait_list);
private_vblank = calloc(1, sizeof * private_vblank);
if (!private_vblank) {
+ /* LCOV_EXCL_START */
if (error)
*error = TDM_ERROR_OUT_OF_MEMORY;
VER("alloc failed");
return NULL;
+ /* LCOV_EXCL_STOP */
}
tdm_output_add_change_handler(output, _tdm_vblank_cb_output_change, private_vblank);
ret = tdm_event_loop_source_timer_update(private_vblank->SW_timer, ms_delay);
if (ret != TDM_ERROR_NONE) {
+ /* LCOV_EXCL_START */
tdm_display_unlock(private_vblank->dpy);
VER("couldn't update timer");
return ret;
+ /* LCOV_EXCL_STOP */
}
tdm_display_unlock(private_vblank->dpy);
ret = _tdm_vblank_sw_timer_update(private_vblank);
if (ret != TDM_ERROR_NONE) {
+ /* LCOV_EXCL_START */
LIST_DEL(&wait_info->link);
VER("couldn't update sw timer");
return ret;
+ /* LCOV_EXCL_STOP */
}
return TDM_ERROR_NONE;
wait_info = calloc(1, sizeof * wait_info);
if (!wait_info) {
+ /* LCOV_EXCL_START */
VER("alloc failed");
return TDM_ERROR_OUT_OF_MEMORY;
+ /* LCOV_EXCL_STOP */
}
/* set request time to current time if 0. This function seems to be called in server side. */
}
if (ret != TDM_ERROR_NONE) {
+ /* LCOV_EXCL_START */
LIST_DEL(&wait_info->link);
_tdm_vblank_valid_list_del(&wait_info->valid_link);
free(wait_info);
return ret;
+ /* LCOV_EXCL_STOP */
}
return TDM_ERROR_NONE;
return tdm_vblank_wait(vblank, req_sec, req_usec, interval, func, user_data);
}
+/* LCOV_EXCL_START */
INTERN tdm_error
tdm_vblank_set_add_front(tdm_vblank *vblank, unsigned int add_front)
{
return TDM_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
INTERN tdm_error
tdm_vblank_set_resource(tdm_vblank *vblank, struct wl_resource *resource)
return private_vblank->stamp;
}
+/* LCOV_EXCL_START */
INTERN void
tdm_vblank_get_vblank_list_information(tdm_display *dpy, char *reply, int *len)
{
TDM_SNPRINTF(reply, len, "\n");
}
+/* LCOV_EXCL_STOP */