tqueue = tdm_hwc_get_client_target_buffer_queue(__thwc, &terror);
if (terror != TDM_ERROR_NONE) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("HWCTDM", "tdm_hwc_get_client_target_buffer_queue fails.");
+/*LCOV_EXCL_STOP*/
}
__bufferQueue = std::make_shared<DSBufferQueueTBMImpl>(tqueue);
terror = tdm_hwc_set_client_target_buffer(__thwc, (tbm_surface_h)buffer->getNativeBuffer(), fb_damage);
if (terror != TDM_ERROR_NONE) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("TDM_HWC", "tdm_hwc_set_client_target_buffer fails.");
return false;
+/*LCOV_EXCL_STOP*/
}
return true;
twindow = tdm_hwc_create_window(__thwc, &terror);
if (!twindow) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("HWCTDM", "tdm_hwc_create_window fails.");
return nullptr;
+/*LCOV_EXCL_STOP*/
}
deviceHWCWindow = std::make_shared<DSDisplayDeviceHWCWindowTDMImpl>(twindow);
if (!deviceHWCWindow) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("HWCTDM", "new DSDisplayDeviceHWCWindowTDMImpl fails.");
return nullptr;
+/*LCOV_EXCL_STOP*/
}
return deviceHWCWindow;
//TODO: commit with async
terror = tdm_hwc_commit(__thwc, true, NULL, NULL);
if (terror != TDM_ERROR_NONE) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("HWCTDM", "tdm_hwc_commit fails.");
__presentFrameDoneWindows();
return false;
+/*LCOV_EXCL_STOP*/
}
DSLOG_INF("HWCTDM", "HWC COMMIT COMMIT COMMIT ~#######");
// validate thwc_windows
terror = tdm_hwc_validate(__thwc, thwc_windows, numVisibleHWCWins, &numChanges);
if (terror != TDM_ERROR_NONE) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("TDM_HWC", "tdm_hwc_validate fails.");
free(thwc_windows);
return false;
+/*LCOV_EXCL_STOP*/
}
free(thwc_windows);
// TODO: accept_validation is depending on the transitions.
terror = tdm_hwc_accept_validation(__thwc);
if (terror != TDM_ERROR_NONE) {
+/*LCOV_EXCL_STOP*/
DSLOG_ERR("TDM_HWC", "tdm_hwc_accept_validation fails.");
return false;
+/*LCOV_EXCL_STOP*/
}
return true;
__ecoreFdHandler(nullptr)
{
if (!ecore_init()) {
+/*LCOV_EXCL_START*/
DSLOG_ERR("EventLoop", "ecore_init() fails.");
+/*LCOV_EXCL_STOP*/
}
__eventFd = eventfd(0, EFD_NONBLOCK);
Eina_Bool DSDisplayDeviceHWCWindowTDMTargetImpl::__onFdHandler(void *data, Ecore_Fd_Handler *hdlr)
{
+/*LCOV_EXCL_START*/
int len;
int fd;
char buffer[64];
DSLOG_WRN("DSDisplayDeviceHWCWindowTDMTargetImpl", "failed to read buffer from event fd:%m");
return ECORE_CALLBACK_RENEW;
+/*LCOV_EXCL_STOP*/
}
void DSDisplayDeviceHWCWindowTDMTargetImpl::__onAcquirable(void *data)
int ret;
ret = write(__eventFd, &value, sizeof(value));
- if (ret == -1)
+ if (ret == -1) {
+/*LCOV_EXCL_START*/
DSLOG_WRN("DSDisplayDeviceHWCWindowTDMTargetImpl", "failed to write a value on event fd:%m");
+/*LCOV_EXCL_STOP*/
+ }
+
}
}