configure.ac: define ENABLE_HWC_MULTI 56/75156/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 17 Jun 2016 02:00:39 +0000 (11:00 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 17 Jun 2016 02:00:39 +0000 (11:00 +0900)
Change-Id: Ic10986e4a2b53084ede197a1a8d844dafc27cd22

configure.ac
src/bin/e_comp.c

index 53a9cf0..ea63548 100755 (executable)
@@ -258,6 +258,17 @@ AC_ARG_ENABLE([function-trace],
 AC_MSG_CHECKING([whether enlightenment function trace is enabled])
 AC_MSG_RESULT([${function_trace}])
 
+hwc_multi_plane=no
+AC_ARG_ENABLE([hwc-multi],
+  AS_HELP_STRING([--enable-hwc-multi],[]),
+  [
+   hwc_multi_plane=yes
+   AC_DEFINE_UNQUOTED([ENABLE_HWC_MULTI], [1], [enable hwc multi])
+  ],
+  [hwc_multi_plane=no])
+AC_MSG_CHECKING([whether enlightenment hwc using multi plane is enabled])
+AC_MSG_RESULT([${hwc_multi_plane}])
+
 e_requires="\
   evas >= $efl_version \
   ecore >= $efl_version \
index 3db1ba8..f958902 100644 (file)
@@ -86,7 +86,7 @@ E_API int E_EVENT_COMPOSITOR_FPS_UPDATE = -1;
 #define CRI(f, x ...)
 #endif
 
-#ifdef MULTI_PLANE_HWC
+#ifdef ENABLE_HWC_MULTI
 static void
 _e_comp_hooks_clean(void)
 {
@@ -119,7 +119,7 @@ _e_comp_hook_call(E_Comp_Hook_Point hookpoint, void *data EINA_UNUSED)
    if ((_e_comp_hooks_walking == 0) && (_e_comp_hooks_delete > 0))
      _e_comp_hooks_clean();
 }
-#endif
+#endif  // end of ENABLE_HWC_MULTI
 
 static E_Client *
 _e_comp_fullscreen_check(void)
@@ -354,7 +354,7 @@ _e_comp_cb_nocomp_end(void)
    ecore_event_add(E_EVENT_COMPOSITOR_ENABLE, NULL, NULL, NULL);
 }
 
-#ifndef MULTI_PLANE_HWC
+#ifndef ENABLE_HWC_MULTI
 static Eina_Bool
 _e_comp_cb_nocomp_begin_timeout(void *data EINA_UNUSED)
 {
@@ -367,7 +367,7 @@ _e_comp_cb_nocomp_begin_timeout(void *data EINA_UNUSED)
      }
    return EINA_FALSE;
 }
-#endif
+#endif  // end of ENABLE_HWC_MULTI
 E_API void
 e_comp_nocomp_end(const char *location)
 {
@@ -377,7 +377,7 @@ e_comp_nocomp_end(const char *location)
    INF("HWC : NOCOMP_END at %s\n", location);
    _e_comp_cb_nocomp_end();
 }
-#ifdef MULTI_PLANE_HWC
+#ifdef ENABLE_HWC_MULTI
 static Eina_Bool
 _hwc_set(E_Output *eout)
 {
@@ -778,7 +778,7 @@ _e_comp_hwc_end(const char *location)
 
    e_comp_render_queue();
 }
-#endif
+#endif  // end of ENABLE_HWC_MULTI
 
 static void
 _e_comp_client_update(E_Client *ec)
@@ -877,7 +877,7 @@ setup_hwcompose:
      {
         goto end;
      }
-#ifdef MULTI_PLANE_HWC
+#ifdef ENABLE_HWC_MULTI
    if(_e_comp_hwc_usable())
      {
         if (_e_comp_hwc_is_on())
@@ -944,7 +944,7 @@ setup_hwcompose:
         if (e_comp->nocomp && e_comp->nocomp_ec)
           e_comp_nocomp_end("_e_comp_cb_update : ec is not fullscreen");
      }
-#endif
+#endif  // end of ENABLE_HWC_MULTI
 
 end: