if (!private_module->use_hal_tdm) {
if (!func_hwc->hwc_create_window) {
- /* LCOV_EXCL_START */
if (error)
*error = TDM_ERROR_BAD_MODULE;
return NULL;
- /* LCOV_EXCL_STOP */
}
}
private_hwc_window = calloc(1, sizeof(tdm_private_hwc_window));
if (!private_hwc_window) {
- /* LCOV_EXCL_START */
TDM_ERR("failed: alloc memory");
if (error)
*error = TDM_ERROR_OUT_OF_MEMORY;
return NULL;
- /* LCOV_EXCL_STOP */
}
if (private_module->use_hal_tdm)
hwc_window_backend = (tdm_hwc_window *)hal_tdm_hwc_create_window((hal_tdm_hwc *)private_hwc->hwc_backend, (hal_tdm_error *)&ret);
queue = hal_tdm_hwc_window_acquire_buffer_queue((hal_tdm_hwc_window *)private_hwc_window->hwc_window_backend, (hal_tdm_error *)error);
} else {
if (!func_hwc_window->hwc_window_acquire_buffer_queue) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_WRN("not implemented!!");
if (error)
memcpy(&value->ptr, &hvalue.ptr, sizeof(tdm_value));
} else {
if (!func_hwc_window->hwc_window_get_property) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_WRN("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
ret = hal_tdm_hwc_window_set_property((hal_tdm_hwc_window *)private_hwc_window->hwc_window_backend, id, hvalue);
} else {
if (!func_hwc_window->hwc_window_set_property) {
- /* LCOV_EXCL_START */
_pthread_mutex_unlock(&private_display->lock);
TDM_WRN("not implemented!!");
return TDM_ERROR_NOT_IMPLEMENTED;
mode_change_handler = calloc(1, sizeof(tdm_private_output_mode_change_handler));
if (!mode_change_handler) {
- /* LCOV_EXCL_START */
TDM_ERR("failed: alloc memory");
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_OUT_OF_MEMORY;
- /* LCOV_EXCL_STOP */
}
mode_change_handler->private_output = private_output;
wl_resource_create(client, &wl_tdm_voutput_interface,
wl_resource_get_version(resource), id);
if (!voutput_resource) {
- /* LCOV_EXCL_START */
-
wl_resource_post_no_memory(resource);
TDM_ERR("wl_resource_create failed");
return;
-
- /* LCOV_EXCL_STOP */
}
voutput_info = calloc(1, sizeof * voutput_info);
if (!voutput_info) {
- /* LCOV_EXCL_START */
-
wl_resource_post_no_memory(resource);
wl_resource_destroy(voutput_resource);
TDM_ERR("alloc failed");
return;
-
- /* LCOV_EXCL_STOP */
}
LIST_ADDTAIL(&voutput_info->link, &private_server->voutput_list);