add comment about tdm_helper_drm_fd 03/55303/1
authorBoram Park <boram1288.park@samsung.com>
Wed, 23 Dec 2015 04:26:37 +0000 (13:26 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 23 Dec 2015 04:26:55 +0000 (13:26 +0900)
Change-Id: I7acb3d5120e2856c909893f75db7632a5bbd9952

src/tdm_sprd.c
src/tdm_sprd_display.c

index a53e110..48af8d6 100644 (file)
@@ -225,6 +225,11 @@ tdm_sprd_init(tdm_display *dpy, tdm_error *error)
     sprd_data->fb_fd = -1;
     sprd_data->drm_fd = -1;
 #if 0
+    /* TODO: tdm_helper_drm_fd is external drm_fd which is opened by ecore_drm.
+     * This is very tricky. But we can't remove tdm_helper_drm_fd now because
+     * ecore_drm doesn't use tdm yet. When we make ecore_drm use tdm,
+     * tdm_helper_drm_fd will be removed.
+     */
     if (tdm_helper_drm_fd >= 0)
     {
         sprd_data->drm_fd = tdm_helper_drm_fd;
index 94efddb..6ca0a54 100644 (file)
@@ -1512,6 +1512,11 @@ sprd_output_commit(tdm_output *output, int sync, void *user_data)
         }
     }
 
+    /* TODO: tdm_helper_drm_fd is external drm_fd which is opened by ecore_drm.
+     * This is very tricky. But we can't remove tdm_helper_drm_fd now because
+     * ecore_drm doesn't use tdm yet. When we make ecore_drm use tdm,
+     * tdm_helper_drm_fd will be removed.
+     */
     if (tdm_helper_drm_fd == -1)
     {
         tdm_sprd_vblank_data *vblank_data = calloc(1, sizeof(tdm_sprd_vblank_data));