Remove unnecessary tpl_display_get_bufmgr_fd() api. 87/57287/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Mon, 18 Jan 2016 14:43:33 +0000 (23:43 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Mon, 18 Jan 2016 14:44:37 +0000 (23:44 +0900)
Change-Id: I422dedd4007877fd81608b83e61aa90a05b4cc30

src/tpl.h
src/tpl_display.c
tc/src/tpl_test_display.c

index 585d7d7..f724a11 100644 (file)
--- 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.
index e00e96c..ba2a6f1 100644 (file)
@@ -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)
 {
index 36258bd..9bbdff6 100644 (file)
@@ -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);