e_comp_wl_tbm: remove ecore_drm 81/150381/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 15 Sep 2017 07:58:00 +0000 (16:58 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 15 Sep 2017 09:47:37 +0000 (18:47 +0900)
Change-Id: Ied1afa1fcc91278293b5adb9828724c1262240df

src/bin/e_comp_wl_tbm.c

index 11fc6f7ca7da1b63ecf67c41259bc0f5415892e2..4a5fded45d5a0965ad30ccf65f08096d89922015 100644 (file)
@@ -1,5 +1,4 @@
 #include "e.h"
-#include <Ecore_Drm.h>
 #include <wayland-tbm-server.h>
 #include <tbm_bufmgr.h>
 #include <tbm_surface_internal.h>
@@ -25,10 +24,6 @@ EINTERN Eina_Bool
 e_comp_wl_tbm_init(void)
 {
    struct wayland_tbm_server *tbm_server = NULL;
-   const Eina_List *devs;
-   Ecore_Drm_Device *dev;
-   int drm_fd = -1;
-   const char *dev_name;
 
    if (!e_comp)
      {
@@ -41,19 +36,7 @@ e_comp_wl_tbm_init(void)
    if (e_comp->wl_comp_data->tbm.server)
       return EINA_TRUE;
 
-   devs = ecore_drm_devices_get();
-   EINA_SAFETY_ON_NULL_RETURN_VAL(devs, EINA_FALSE);
-
-   dev = eina_list_nth(devs, 0);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
-
-   drm_fd = ecore_drm_device_fd_get(dev);
-   EINA_SAFETY_ON_FALSE_RETURN_VAL(drm_fd >= 0, EINA_FALSE);
-
-   dev_name = ecore_drm_device_name_get(dev);
-   EINA_SAFETY_ON_FALSE_RETURN_VAL(dev_name, EINA_FALSE);
-
-   tbm_server = wayland_tbm_server_init(e_comp->wl_comp_data->wl.disp, dev_name, drm_fd, 0);
+   tbm_server = wayland_tbm_server_init(e_comp->wl_comp_data->wl.disp, NULL, -1, 0);
    if (!tbm_server)
      {
         e_error_message_show(_("Enlightenment cannot initialize a Wayland TBM!\n"));