e_comp: add e_comp_hwc_multi_plane_set 79/133979/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 9 Jun 2017 07:55:08 +0000 (16:55 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 14 Jun 2017 05:42:00 +0000 (14:42 +0900)
Change-Id: I3878801dcdbc7e86ca48130cbd5ba69acf2409bb

src/bin/e_comp.c
src/bin/e_comp.h

index bd19a35..a2371da 100644 (file)
@@ -941,6 +941,17 @@ e_comp_hwc_end(const char *location)
 
    ELOGF("HWC", " End...  at %s.", NULL, NULL, location);
 }
+
+EINTERN void
+e_comp_hwc_multi_plane_set(Eina_Bool set)
+{
+   if (e_comp->hwc_use_multi_plane == set) return;
+
+   e_comp_hwc_end(__FUNCTION__);
+   e_comp->hwc_use_multi_plane = set;
+
+   ELOGF("HWC", "e_comp_hwc_multi_plane_set : %d", NULL, NULL, set);
+}
 #endif  // end of ENABLE_HWC_MULTI
 
 static Eina_Bool
index e8a9684..da43b15 100644 (file)
@@ -243,6 +243,7 @@ E_API Eina_List *e_comp_vis_ec_list_get(E_Zone *zone); // visible ec list sorted
 
 #ifdef ENABLE_HWC_MULTI
 E_API void e_comp_hwc_end(const char *location);
+EINTERN void e_comp_hwc_multi_plane_set(Eina_Bool set);
 #endif
 
 E_API Eina_Bool e_comp_socket_init(const char *name);