From: Mun, Gwan-gyeong Date: Mon, 18 Jan 2016 14:43:33 +0000 (+0900) Subject: Remove unnecessary tpl_display_get_bufmgr_fd() api. X-Git-Tag: accepted/tizen/common/20160128.122159~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a73b3fcf2fb4ff3ce481bf7a13a8d8aa29266fad;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Remove unnecessary tpl_display_get_bufmgr_fd() api. Change-Id: I422dedd4007877fd81608b83e61aa90a05b4cc30 --- diff --git a/src/tpl.h b/src/tpl.h index 585d7d7..f724a11 100644 --- a/src/tpl.h +++ b/src/tpl.h @@ -368,19 +368,6 @@ tpl_bool_t tpl_display_unbind_client_display_handle(tpl_display_t *display, tpl_backend_type_t tpl_display_get_backend_type(tpl_display_t *display); /** - * Get file descriptor of the buffer manager for the given TPL display. - * - * There might be native buffer manager device (ex. DRM). This function exports - * such native buffer manager for users to be able to access buffers using the - * buffer manager. How returned buffer manager fd is used is fully dependent on - * native platform implementation. - * - * @param display display to get buffer manger fd. - * @return file descriptor handle for the buffer manager. - */ -int tpl_display_get_bufmgr_fd(tpl_display_t *display); - -/** * Get the native display handle which the given TPL display is created for. * * @param display display to get native handle. diff --git a/src/tpl_display.c b/src/tpl_display.c index e00e96c..ba2a6f1 100644 --- a/src/tpl_display.c +++ b/src/tpl_display.c @@ -154,18 +154,6 @@ tpl_display_get_backend_type(tpl_display_t *display) return display->backend.type; } -int -tpl_display_get_bufmgr_fd(tpl_display_t *display) -{ - if(NULL == display || TPL_TRUE != __tpl_object_is_valid(&display->base)) - { - TPL_ERR("display is invalid!"); - return -1; - } - - return display->bufmgr_fd; -} - tpl_handle_t tpl_display_get_native_handle(tpl_display_t *display) { diff --git a/tc/src/tpl_test_display.c b/tc/src/tpl_test_display.c index 36258bd..9bbdff6 100644 --- a/tc/src/tpl_test_display.c +++ b/tc/src/tpl_test_display.c @@ -92,16 +92,6 @@ bool tpl_display_get_arg_test (TPLNativeWnd* wnd) goto finish; } - //tpl_display_get_bufmgr_fd - int test_fd = -1; - test_fd = tpl_display_get_bufmgr_fd(wnd->tpl_display); - if(test_fd == -1) - { - LOG("ERRO", LOG_LEVEL_HIGH , "failed:tpl_display_get_bufmgr_fd"); - ret = false; - goto finish; - } - //tpl_display_get_native_handle tpl_handle_t test_handle = NULL; test_handle = tpl_display_get_native_handle(wnd->tpl_display); @@ -272,7 +262,6 @@ bool tpl_display_abnormal_test (TPLNativeWnd* wnd) tpl_display_bind_client_display_handle(NULL,NULL); tpl_display_unbind_client_display_handle(NULL,NULL); tpl_display_get_backend_type(NULL); - tpl_display_get_bufmgr_fd(NULL); tpl_display_get_native_handle(NULL); tpl_display_filter_config(NULL,NULL,0); tpl_display_query_config(NULL,TPL_SURFACE_TYPE_PIXMAP,0,8,8,8,24,NULL,NULL);