e_output: added e_output_is_fb_compositing 00/75500/3
authorJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 20 Jun 2016 06:46:41 +0000 (15:46 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 28 Jun 2016 07:28:45 +0000 (00:28 -0700)
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

src/bin/e_output.c
src/bin/e_output.h

index e4538e6..bbd8297 100644 (file)
@@ -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;
+}
index 274a9ec..27dfa84 100644 (file)
@@ -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