Ecore_Evas: Implement generic ecore_evas_wayland_resize funtion.
SVN revision: 67132
This commit is contained in:
parent
334ac03863
commit
3abbc4f0aa
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue