TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
+/* LCOV_EXCL_START */
static void
_tdm_hwc_got_wait_vblank(unsigned int sequence,
unsigned int tv_sec, unsigned int tv_usec, void *user_data)
done:
return ret;
}
+/* LCOV_EXCL_STOP */
INTERN tdm_error
tdm_hwc_init(tdm_private_display *private_display)
TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, commit_failed);
if (hwc_use_vblank) {
+ /* LCOV_EXCL_START */
ret = _tdm_hwc_vblank(private_hwc, hwc_commit_handler);
if (ret == TDM_ERROR_NONE) {
if (tdm_debug_module & TDM_DEBUG_COMMIT)
private_hwc->index, hwc_commit_handler, func, user_data);
} else
goto commit_failed;
+ /* LCOV_EXCL_STOP */
} else {
if (tdm_debug_module & TDM_DEBUG_COMMIT)
TDM_INFO("hwc(%d) backend commit: handle(%p) func(%p) user_data(%p)",
return TDM_ERROR_NONE;
}
+/* LCOV_EXCL_START */
INTERN void
tdm_output_thread_cb_destroy(tdm_private_display *private_display, void *object, tdm_thread_cb_base *cb_base, void *user_data)
{
_pthread_mutex_unlock(&private_display->lock);
}
+/* LCOV_EXCL_STOP */
EXTERN tdm_module *
tdm_output_get_backend_module(tdm_output *output, tdm_error *error)
return TDM_ERROR_NONE;
}
+/* LCOV_EXCL_START */
INTERN void
tdm_output_cb_status(tdm_output *output_backend, tdm_output_conn_status status, void *user_data)
{
ret = _tdm_output_call_thread_cb_dpms(private_output, dpms);
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
+/* LCOV_EXCL_STOP */
EXTERN tdm_error
tdm_output_add_change_handler(tdm_output *output,
return ret;
}
+/* LCOV_EXCL_START */
EXTERN tdm_error
tdm_output_add_mode_change_request_handler(tdm_output *output,
tdm_output_mode_change_request_handler func,
return TDM_ERROR_INVALID_PARAMETER;
}
+/* LCOV_EXCL_STOP */
EXTERN void
tdm_output_remove_change_handler(tdm_output *output,
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
+/* LCOV_EXCL_START */
static void
_tdm_output_thread_cb_commit(tdm_private_display *private_display, void *object, tdm_thread_cb_base *cb_base, void *user_data)
{
ret = tdm_thread_cb_call(private_output, &output_commit.base, 1);
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
static void
_tdm_voutput_thread_cb_commit(tdm_private_display *private_display, void *object, tdm_thread_cb_base *cb_base, void *user_data)
{
ret = tdm_thread_cb_call(private_voutput, &voutput_commit.base, 1);
TDM_WARNING_IF_FAIL(ret == TDM_ERROR_NONE);
}
+/* LCOV_EXCL_STOP */
/* add_front: To distinguish between the user vblank handlers and the layer
* commit vblank handlers. The layer commit handlers will be called
}
}
+/* LCOV_EXCL_START */
INTERN void
tdm_output_remove_commit_handler_internal(tdm_output *output, tdm_output_commit_handler func, void *user_data)
{
}
}
}
+/* LCOV_EXCL_STOP */
EXTERN tdm_error
tdm_output_remove_vblank_handler(tdm_output *output, tdm_output_vblank_handler func, void *user_data)
return ret;
}
+/* LCOV_EXCL_START */
EXTERN tdm_error
tdm_output_remove_commit_handler(tdm_output *output, tdm_output_commit_handler func, void *user_data)
{
return ret;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
INTERN void
tdm_output_request_mode_set(tdm_output *output, unsigned int index)
{
voutput_commit_handler = calloc(1, sizeof(tdm_private_voutput_commit_handler));
if (!voutput_commit_handler) {
- /* LCOV_EXCL_START */
TDM_ERR("failed: alloc memory");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
ret = tdm_thread_cb_add(private_output->private_voutput, TDM_THREAD_CB_VOUTPUT_COMMIT, voutput_commit_handler, _tdm_voutput_thread_cb_commit, NULL);
return TDM_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
INTERN tdm_error
return TDM_ERROR_NONE;
}
+/* LCOV_EXCL_START */
INTERN tdm_error
tdm_voutput_destroy(tdm_voutput *voutput)
{
return ret;
}
-/* LCOV_EXCL_START */
INTERN tdm_error
tdm_voutput_set_commit_func(tdm_voutput *voutput, tdm_voutput_commit_handler func)
{
}
}
+/* LCOV_EXCL_START */
static void _tdm_voutput_cb_destroy(struct wl_client *client, struct wl_resource *resource)
{
wl_resource_destroy(resource);
tbm_surface_internal_ref(buffer);
voutput_buffer = calloc(1, sizeof *voutput_buffer);
if (!voutput_buffer) {
- /* LCOV_EXCL_START */
-
TDM_ERR("fail calloc");
tbm_surface_internal_unref(buffer);
return NULL;
-
- /* LCOV_EXCL_STOP */
}
voutput_buffer->wl_buffer = _tdm_voutput_export_buffer(voutput_info, buffer);
if (!voutput_buffer->wl_buffer) {
- /* LCOV_EXCL_START */
-
TDM_ERR("fail export buffer");
free(voutput_buffer);
tbm_surface_internal_unref(buffer);
return NULL;
-
- /* LCOV_EXCL_STOP */
}
voutput_buffer->buffer = buffer;
wl_tdm_voutput_send_ack_message(voutput_resource, WL_TDM_VOUTPUT_MESSAGE_ADDED);
}
+/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
static void