X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftdm_hwc_window.c;h=1dd9e543c316f572fab08883cbaa0d65c12054e5;hb=b4bf2e2628819c2e0c1e621defefb4d4de8d7c75;hp=fd863458742f36960dedcd75fb9881e60dc5669f;hpb=d18570c1256f15468761ccf7eece3f329c1d3c5b;p=platform%2Fcore%2Fuifw%2Flibtdm.git diff --git a/src/tdm_hwc_window.c b/src/tdm_hwc_window.c index fd86345..1dd9e54 100644 --- a/src/tdm_hwc_window.c +++ b/src/tdm_hwc_window.c @@ -481,7 +481,7 @@ tdm_hwc_window_set_name(tdm_hwc_window *hwc_window, const char *name) private_module = private_output->private_module; func_hwc_window = &private_module->func_hwc_window; - if (!func_hwc_window->hwc_window_get_constraints) { + if (!func_hwc_window->hwc_window_set_name) { _pthread_mutex_unlock(&private_display->lock); TDM_WRN("not implemented!!"); return TDM_ERROR_NOT_IMPLEMENTED; @@ -493,4 +493,30 @@ tdm_hwc_window_set_name(tdm_hwc_window *hwc_window, const char *name) return ret; } + +tdm_error +tdm_hwc_window_set_cursor_image(tdm_hwc_window *hwc_window, int width, int height, int stride, void *ptr) +{ + tdm_private_module *private_module; + tdm_func_hwc_window *func_hwc_window = NULL; + + HWC_WINDOW_FUNC_ENTRY(); + + _pthread_mutex_lock(&private_display->lock); + + private_module = private_output->private_module; + func_hwc_window = &private_module->func_hwc_window; + + if (!func_hwc_window->hwc_window_set_cursor_image) { + _pthread_mutex_unlock(&private_display->lock); + TDM_WRN("not implemented!!"); + return TDM_ERROR_NOT_IMPLEMENTED; + } + + ret = func_hwc_window->hwc_window_set_cursor_image(private_hwc_window->hwc_window_backend, width, height, stride, ptr); + + _pthread_mutex_unlock(&private_display->lock); + + return ret; +} /* LCOV_EXCL_STOP */ \ No newline at end of file