From: Juyeon Lee Date: Mon, 20 Jun 2016 06:46:41 +0000 (+0900) Subject: e_output: added e_output_is_fb_compositing X-Git-Tag: accepted/tizen/common/20160628.141830~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7ce287cdd82169ec0e991cf5b289bce2a419735;p=platform%2Fupstream%2Fenlightenment.git e_output: added e_output_is_fb_compositing one of output->planes is dedicated for fb target the plane is used by compositor for e_comp->evas compositing often, the plane can be assined by one surface if it meets hwc condition Change-Id: I458146060cae2ca0353e04762cc78ce3fb91116e --- diff --git a/src/bin/e_output.c b/src/bin/e_output.c index e4538e6..bbd8297 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -346,3 +346,23 @@ e_output_util_planes_print(void) fputc('\n', stderr); } } + +E_API Eina_Bool +e_output_is_fb_composing(E_Output *output) +{ + Eina_List *p_l; + E_Plane *ep; + + EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE); + EINA_SAFETY_ON_NULL_RETURN_VAL(output->planes, EINA_FALSE); + + EINA_LIST_FOREACH(output->planes, p_l, ep) + { + if (e_plane_is_fb_target(ep)) + { + if(ep->ec == NULL) return EINA_TRUE; + } + } + + return EINA_FALSE; +} diff --git a/src/bin/e_output.h b/src/bin/e_output.h index 274a9ec..27dfa84 100644 --- a/src/bin/e_output.h +++ b/src/bin/e_output.h @@ -69,6 +69,7 @@ EINTERN const Eina_List * e_output_screens_get(void); E_API E_Output * e_output_find(const char *id); E_API const Eina_List * e_output_planes_get(E_Output *eout); E_API void e_output_util_planes_print(void); +E_API Eina_Bool e_output_is_fb_composing(E_Output *eout); #endif #endif