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
{
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
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
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);