e_comp_hwc: remove the build warnings
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Jun 2016 02:39:42 +0000 (11:39 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 14 Jun 2016 02:39:42 +0000 (11:39 +0900)
Change-Id: I913c8a46cf7fbb5e3b2f7888fd02d08455bfcc86

src/bin/e_comp_hwc.c

index 3b987dd7ef5a234e9649e5b4f287c642d6a7134a..01af6aa27ecc1fa6401ae04b444520f802b944d9 100644 (file)
@@ -1,6 +1,79 @@
 #include "e.h"
 
 #ifdef HAVE_HWC
+#ifdef ENABLE_HWC_MULTI
+EINTERN Eina_Bool
+e_comp_hwc_init(void)
+{
+   if (!e_comp || !e_comp->e_comp_screen)
+     {
+        e_error_message_show(_("Enlightenment cannot has no e_comp at HWC(HardWare Composite)!\n"));
+        return EINA_FALSE;
+     }
+
+   if (!e_comp_screen_hwc_setup(e_comp->e_comp_screen))
+     {
+        ERR("fail to e_comp_screen_hwc_setup");
+        return EINA_FALSE;
+     }
+
+   return EINA_TRUE;
+}
+
+EINTERN void
+e_comp_hwc_shutdown(void)
+{
+   ;
+}
+
+EINTERN Eina_Bool
+e_comp_hwc_mode_nocomp(E_Client *ec)
+{
+   return EINA_FALSE;
+}
+
+EINTERN void
+e_comp_hwc_display_client(E_Client *ec)
+{
+   ;
+}
+
+EINTERN void
+e_comp_hwc_trace_debug(Eina_Bool onoff)
+{
+   ;
+}
+
+EINTERN void
+e_comp_hwc_info_debug(void)
+{
+   ;
+}
+
+EINTERN Eina_Bool
+e_comp_hwc_native_surface_set(E_Client *ec)
+{
+   return EINA_FALSE;
+}
+
+EINTERN void
+e_comp_hwc_client_commit(E_Client *ec)
+{
+   ;
+}
+
+E_API Eina_Bool
+e_comp_hwc_client_set_layer(E_Client *ec, int zorder)
+{
+   return EINA_FALSE;
+}
+
+E_API void
+e_comp_hwc_client_unset_layer(int zorder)
+{
+   ;
+}
+#else
 # include "e_comp_wl.h"
 # include "e_comp_hwc.h"
 
@@ -1950,6 +2023,7 @@ e_comp_hwc_client_unset_layer(int zorder)
           }
      }
 }
+#endif
 #else /* HAVE_HWC */
 EINTERN Eina_Bool
 e_comp_hwc_init(void)