From: Changyeon Lee Date: Wed, 5 Jul 2017 05:02:08 +0000 (+0900) Subject: e_output: use primary plane to default fb target X-Git-Tag: accepted/tizen/3.0/common/20170707.091520~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c13cb045061dfba6f14bdcb83d9edcc1bfe3da4;p=platform%2Fupstream%2Fenlightenment.git e_output: use primary plane to default fb target this commit is temporary output should use lowest zpos plane to default fbtarget Change-Id: I17bf57a8899531b09cf5e63c9bbdbda5321f349b --- diff --git a/src/bin/e_output.c b/src/bin/e_output.c index faa7542..6ce4e74 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -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;