Ecore_Evas: Implement generic ecore_evas_wayland_resize funtion.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 Jan 2012 09:07:22 +0000 (09:07 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 Jan 2012 09:07:22 +0000 (09:07 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@67132 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/Ecore_Evas.h
src/lib/ecore_evas/ecore_evas.c
src/lib/ecore_evas/ecore_evas_private.h

index ce903f0..d2f40fd 100644 (file)
@@ -695,7 +695,7 @@ EAPI Ecore_DirectFB_Window *ecore_evas_directfb_window_get(const Ecore_Evas *ee)
 
 EAPI Ecore_Evas     *ecore_evas_wayland_shm_new(const char *disp_name, int x, int y, int w, int h, int frame);
 EAPI Ecore_Evas     *ecore_evas_wayland_egl_new(const char *disp_name, int x, int y, int w, int h, int frame);
-EAPI void            ecore_evas_wayland_shm_resize(Ecore_Evas *ee, int location);
+EAPI void            ecore_evas_wayland_resize(Ecore_Evas *ee, int location);
 
 /**
  * @brief Create a new @c Ecore_Evas canvas bound to the Evas
index 7d36096..2850997 100644 (file)
@@ -2675,3 +2675,21 @@ ecore_evas_input_event_unregister(Ecore_Evas *ee)
 {
    ecore_event_window_unregister((Ecore_Window)ee);
 }
+
+#if defined(BUILD_ECORE_EVAS_WAYLAND_SHM) || defined (BUILD_ECORE_EVAS_WAYLAND_EGL)
+EAPI void 
+ecore_evas_wayland_resize(Ecore_Evas *ee, int location)
+{
+   if (!ee) return;
+   if (!strcmp(ee->driver, "wayland_shm"))
+     _ecore_evas_wayland_shm_resize(ee, location);
+   else if (!strcmp(ee->driver, "wayland_egl"))
+     _ecore_evas_wayland_egl_resize(ee, location);
+}
+#else
+EAPI void 
+ecore_evas_wayland_resize(Ecore_Evas *ee __UNUSED__, int location __UNUSED__)
+{
+
+}
+#endif
index 72d04a6..76cf4a7 100644 (file)
@@ -276,10 +276,6 @@ struct _Ecore_Evas_Engine
         struct wl_shell_surface *shell_surface;
         struct wl_surface *surface;
         struct wl_buffer *buffer;
-
-# ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
-        struct wl_egl_pixmap *pixmap;
-# endif
      } wl;
 #endif
 
@@ -407,6 +403,14 @@ void _ecore_evas_ews_events_init(void);
 int _ecore_evas_ews_shutdown(void);
 #endif
 
+#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
+void _ecore_evas_wayland_shm_resize(Ecore_Evas *ee, int location);
+#endif
+
+#ifdef BUILD_ECORE_EVAS_WAYLAND_EGL
+void _ecore_evas_wayland_egl_resize(Ecore_Evas *ee, int location);
+#endif
+
 void _ecore_evas_fps_debug_init(void);
 void _ecore_evas_fps_debug_shutdown(void);
 void _ecore_evas_fps_debug_rendertime_add(double t);