configure.ac: add enalbe-hwc-multi
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 3 Jun 2016 11:49:11 +0000 (20:49 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 10 Jun 2016 02:14:04 +0000 (11:14 +0900)
Change-Id: I198e6f2c0c97a34db974267405fee5ca3d41d790

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 83d0891..b0fc84c 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)
@@ -352,7 +352,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)
 {
@@ -365,7 +365,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)
 {
@@ -375,7 +375,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)
 {
@@ -768,7 +768,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)
@@ -867,7 +867,7 @@ setup_hwcompose:
      {
         goto end;
      }
-#ifdef MULTI_PLANE_HWC
+#ifdef ENABLE_HWC_MULTI
    if(_e_comp_hwc_usable())
      {
         if (_e_comp_hwc_is_on())
@@ -934,7 +934,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: