e_output: use primary plane to default fb target sandbox/boram1288/SR
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 5 Jul 2017 05:02:08 +0000 (14:02 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 5 Jul 2017 07:24:14 +0000 (16:24 +0900)
this commit is temporary output should use lowest zpos plane
to default fbtarget

Change-Id: I17bf57a8899531b09cf5e63c9bbdbda5321f349b

src/bin/e_output.c

index faa7542..6ce4e74 100644 (file)
@@ -881,30 +881,8 @@ e_output_default_fb_target_get(E_Output *output)
    /* find lowest zpos graphic type layer */
    EINA_LIST_FOREACH(output->planes, p_l, ep)
      {
-        if (e_plane_type_get(ep) == E_PLANE_TYPE_GRAPHIC)
-          {
-             Eina_List *formats = NULL;
-             Eina_List *formats_l = NULL;
-             Eina_Bool available_rgb = EINA_FALSE;
-             tbm_format *format;
-
-             formats = e_plane_available_tbm_formats_get(ep);
-             if (!formats) continue;
-
-             EINA_LIST_FOREACH(formats, formats_l, format)
-               {
-                  if (*format == TBM_FORMAT_ARGB8888 ||
-                      *format == TBM_FORMAT_XRGB8888)
-                    {
-                       available_rgb = EINA_TRUE;
-                       break;
-                    }
-               }
-
-             if (!available_rgb) continue;
-
-             return ep;
-          }
+        if (ep->is_primary)
+          return ep;
      }
 
    return NULL;