AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_COMMON], [test "x${have_static_evas_engine_gl_common}" = "xyes"])
+have_evas_engine_wayland_common="no"
+if test "x$have_evas_engine_wayland_egl" = "xstatic" || \
+ test "x$have_evas_engine_wayland_shm" = "xstatic" || \
+ test "x$have_evas_engine_wayland_egl" = "xyes" || \
+ test "x$have_evas_engine_wayland_shm" = "xyes"; then
+ have_evas_engine_wayland_common="yes"
+fi
+
+if test "x$have_evas_engine_wayland_common" = "xyes"; then
+ AC_DEFINE([BUILD_ENGINE_WAYLAND_COMMON], [1], [Building any wayland evas engine])
+fi
+AM_CONDITIONAL([BUILD_ENGINE_WAYLAND_COMMON], [test "x${have_evas_engine_wayland_common}" = "xyes"])
+
## Vg Loaders
EVAS_CHECK_VG_LOADER([SVG], [${want_evas_vg_loader_svg}])
@ECORE_WL2_CFLAGS@ \
-I$(top_srcdir)/src/modules/evas/engines/wayland_shm \
-I$(top_srcdir)/src/modules/evas/engines/wayland_egl \
+-I$(top_srcdir)/src/modules/evas/engines/wayland_common \
@ECORE_WAYLAND_CFLAGS@ \
@ECORE_WL2_CFLAGS@
modules_ecore_evas_engines_wayland_module_la_LIBADD = \
endif
endif
+if BUILD_ENGINE_WAYLAND_COMMON
+dist_installed_evasmainheaders_DATA += modules/evas/engines/wayland_common/Evas_Engine_Wayland.h
+endif
+
if BUILD_ENGINE_WAYLAND_EGL
-dist_installed_evasmainheaders_DATA += modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
WAYLAND_EGL_SOURCES = \
modules/evas/engines/wayland_egl/evas_engine.c \
modules/evas/engines/wayland_egl/evas_wl_main.c \
-I$(top_srcdir)/src/lib/evas/include \
-I$(top_srcdir)/src/lib/evas/cserve2 \
-I$(top_srcdir)/src/modules/evas/engines/wayland_egl \
+-I$(top_srcdir)/src/modules/evas/engines/wayland_common \
@EVAS_CFLAGS@ \
@evas_engine_wayland_egl_cflags@
modules_evas_engines_wayland_egl_module_la_LIBADD = \
endif
if BUILD_ENGINE_WAYLAND_SHM
-dist_installed_evasmainheaders_DATA += modules/evas/engines/wayland_shm/Evas_Engine_Wayland_Shm.h
WAYLAND_SHM_SOURCES = \
-modules/evas/engines/wayland_shm/Evas_Engine_Wayland_Shm.h \
+modules/evas/engines/wayland_common/Evas_Engine_Wayland.h \
modules/evas/engines/wayland_shm/evas_engine.c \
modules/evas/engines/wayland_shm/evas_engine.h \
modules/evas/engines/wayland_shm/evas_shm.c \
-I$(top_srcdir)/src/lib/evas/cserve2 \
-I$(top_srcdir)/src/lib/ecore_wl2 \
-I$(top_srcdir)/src/static_libs/libdrm \
+-I$(top_srcdir)/src/modules/evas/engines/wayland_common \
@EVAS_CFLAGS@ \
@evas_engine_wayland_shm_cflags@
modules_evas_engines_wayland_shm_module_la_LIBADD = \
# include <unistd.h>
# include <sys/types.h>
# include <sys/mman.h>
-# include <Evas_Engine_Wayland_Egl.h>
+# include <Evas_Engine_Wayland.h>
#ifdef EAPI
# undef EAPI
void
_ee_egl_display_unset(Ecore_Evas *ee)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
einfo->info.wl_display = NULL;
wdata = ee->engine.data;
wdata->regen_objs = _evas_canvas_image_data_unset(ecore_evas_get(ee));
_ee_cb_sync_done(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
{
Ecore_Evas *ee;
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
ee = data;
if (wdata->sync_done) return ECORE_CALLBACK_PASS_ON;
wdata->sync_done = EINA_TRUE;
- if ((einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.wl_display = ecore_wl2_display_get(wdata->display);
einfo->info.destination_alpha = EINA_TRUE;
if (wdata->win)
{
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (einfo)
{
evas_damage_rectangle_add(ee->evas, 0, 0, ee->w + fw, ee->h + fh);
_ecore_evas_wl_egl_render_flush_pre(void *data, Evas *e, void *event_info EINA_UNUSED)
{
Ecore_Evas *ee = data;
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fx, fy;
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(e);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(e);
wdata = ee->engine.data;
einfo->window.x = wdata->win->geometry.x;
einfo->window.y = wdata->win->geometry.y;
{
Ecore_Wl2_Display *ewd;
Ecore_Wl2_Window *p = NULL;
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Interface_Wayland *iface;
Ecore_Evas_Engine_Wl_Data *wdata;
Ecore_Evas *ee = NULL;
if (ewd->sync_done)
{
wdata->sync_done = EINA_TRUE;
- if ((einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.wl_display = ecore_wl2_display_get(ewd);
einfo->info.destination_alpha = EINA_TRUE;
static void
_ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_evas_wl_common_rotation_set(ee, rotation, resize);
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (!einfo) return;
einfo->info.rotation = rotation;
static void
_ecore_evas_wl_show(Ecore_Evas *ee)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
ecore_wl2_window_show(wdata->win);
ecore_wl2_window_alpha_set(wdata->win, ee->alpha);
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (einfo)
{
struct wl_surface *surf;
_ecore_evas_wl_hide(Ecore_Evas *ee)
{
Ecore_Evas_Engine_Wl_Data *wdata;
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
evas_sync(ee->evas);
- einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (einfo)
{
einfo->info.wl_surface = NULL;
static void
_ecore_evas_wayland_egl_alpha_do(Ecore_Evas *ee, int alpha)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
- if ((einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.destination_alpha = EINA_TRUE;
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
static void
_ecore_evas_wayland_egl_transparent_do(Ecore_Evas *ee, int transparent)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
- if ((einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.destination_alpha = EINA_TRUE;
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
void
_ecore_evas_wayland_egl_resize_edge_set(Ecore_Evas *ee, int edge)
{
- Evas_Engine_Info_Wayland_Egl *einfo;
+ Evas_Engine_Info_Wayland *einfo;
- if ((einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
einfo->info.edges = edge;
}
#include "ecore_evas_wayland_private.h"
#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
-# include <Evas_Engine_Wayland_Shm.h>
+# include <Evas_Engine_Wayland.h>
# include <stdlib.h>
# include <string.h>
# include <unistd.h>
_ee_cb_sync_done(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
{
Ecore_Evas *ee;
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
ee = data;
if (wdata->sync_done) return ECORE_CALLBACK_PASS_ON;
wdata->sync_done = EINA_TRUE;
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
ecore_evas_manual_render_set(ee, 0);
einfo->info.wl_display = ecore_wl2_display_get(wdata->display);
{
Ecore_Wl2_Display *ewd;
Ecore_Wl2_Window *p = NULL;
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
Ecore_Evas_Interface_Wayland *iface;
Ecore_Evas *ee;
if (ewd->sync_done)
{
wdata->sync_done = EINA_TRUE;
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.wl_display = ecore_wl2_display_get(ewd);
einfo->info.wl_dmabuf = ecore_wl2_display_dmabuf_get(ewd);
static void
_ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
_ecore_evas_wl_common_rotation_set(ee, rotation, resize);
- einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (!einfo) return;
einfo->info.rotation = rotation;
static void
_ecore_evas_wl_show(Ecore_Evas *ee)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
ecore_wl2_window_show(wdata->win);
ecore_wl2_window_alpha_set(wdata->win, ee->alpha);
- einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (einfo)
{
struct wl_surface *surf;
static void
_ecore_evas_wl_hide(Ecore_Evas *ee)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
evas_sync(ee->evas);
- einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
+ einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
if (einfo)
{
einfo->info.wl_surface = NULL;
void
_ecore_evas_wayland_shm_alpha_do(Ecore_Evas *ee, int alpha)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.destination_alpha = EINA_TRUE;//ee->alpha;
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
void
_ecore_evas_wayland_shm_transparent_do(Ecore_Evas *ee, int transparent)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
int fw, fh;
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
{
einfo->info.destination_alpha = EINA_TRUE;//ee->transparent;
if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
void
_ecore_evas_wayland_shm_resize_edge_set(Ecore_Evas *ee, int edge)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas)))
+ if ((einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas)))
einfo->info.edges = edge;
}
-#ifndef _EVAS_ENGINE_WAYLAND_EGL_H
-# define _EVAS_ENGINE_WAYLAND_EGL_H
+#ifndef _EVAS_ENGINE_WAYLAND_COMMON_H
+# define _EVAS_ENGINE_WAYLAND_COMMON_H
-typedef struct _Evas_Engine_Info_Wayland_Egl Evas_Engine_Info_Wayland_Egl;
+typedef struct _Evas_Engine_Info_Wayland Evas_Engine_Info_Wayland;
-struct _Evas_Engine_Info_Wayland_Egl
+struct _Evas_Engine_Info_Wayland
{
/* PRIVATE - don't mess with this baby or evas will poke its tongue out
* at you and make nasty noises */
Evas_Engine_Info magic;
/* engine specific data & parameters it needs to set up */
- struct
+ struct
{
+ /* the wayland shm object used to create new shm pool */
+ struct wl_shm *wl_shm;
+ struct zwp_linux_dmabuf_v1 *wl_dmabuf;
struct wl_display *wl_display;
struct wl_surface *wl_surface;
int depth, rotation, edges;
- unsigned int destination_alpha : 1;
+ int compositor_version;
+ Eina_Bool destination_alpha : 1;
} info;
/* non-blocking or blocking mode */
Evas_Engine_Render_Mode render_mode;
+ Evas *evas;
Eina_Bool vsync : 1;
Eina_Bool indirect : 1;
static void *
eng_info(Evas *evas EINA_UNUSED)
{
- Evas_Engine_Info_Wayland_Egl *info;
+ Evas_Engine_Info_Wayland *info;
/* try to allocate space for our engine info */
- if (!(info = calloc(1, sizeof(Evas_Engine_Info_Wayland_Egl))))
+ if (!(info = calloc(1, sizeof(Evas_Engine_Info_Wayland))))
return NULL;
info->magic.magic = rand();
static void
eng_info_free(Evas *evas EINA_UNUSED, void *info)
{
- Evas_Engine_Info_Wayland_Egl *inf;
+ Evas_Engine_Info_Wayland *inf;
- if ((inf = (Evas_Engine_Info_Wayland_Egl *)info))
+ if ((inf = (Evas_Engine_Info_Wayland *)info))
free(inf);
}
eng_setup(Evas *evas, void *info)
{
Render_Engine_Swap_Mode swap_mode = MODE_FULL;
- Evas_Engine_Info_Wayland_Egl *inf;
+ Evas_Engine_Info_Wayland *inf;
Evas_Public_Data *epd;
Render_Engine *re;
Outbuf *ob;
const char *s;
- inf = (Evas_Engine_Info_Wayland_Egl *)info;
+ inf = (Evas_Engine_Info_Wayland *)info;
epd = efl_data_scope_get(evas, EVAS_CANVAS_CLASS);
if ((s = getenv("EVAS_GL_SWAP_MODE")))
# include "evas_common_private.h"
# include "evas_private.h"
# include "Evas.h"
-# include "Evas_Engine_Wayland_Egl.h"
+# include "Evas_Engine_Wayland.h"
/* NB: This already includes wayland-client.h */
# include <wayland-egl.h>
int depth, screen, rot, alpha;
Evas *evas;
- Evas_Engine_Info_Wayland_Egl *info;
+ Evas_Engine_Info_Wayland *info;
Evas_Engine_GL_Context *gl_context;
Render_Engine_Swap_Mode swap_mode;
extern unsigned int (*glsym_eglSwapBuffersWithDamage) (EGLDisplay a, void *b, const EGLint *d, EGLint c);
extern unsigned int (*glsym_eglSetDamageRegionKHR) (EGLDisplay a, EGLSurface b, EGLint *c, EGLint d);
-Outbuf *eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int h, Render_Engine_Swap_Mode swap_mode);
+Outbuf *eng_window_new(Evas *evas, Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Engine_Swap_Mode swap_mode);
void eng_window_free(Outbuf *gw);
void eng_window_use(Outbuf *gw);
void eng_window_unsurf(Outbuf *gw);
static int win_count = 0;
Outbuf *
-eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int h, Render_Engine_Swap_Mode swap_mode)
+eng_window_new(Evas *evas, Evas_Engine_Info_Wayland *einfo, int w, int h, Render_Engine_Swap_Mode swap_mode)
{
Outbuf *gw;
int context_attrs[3];
+++ /dev/null
-#ifndef _EVAS_ENGINE_WAYLAND_SHM_H
-# define _EVAS_ENGINE_WAYLAND_SHM_H
-
-typedef struct _Evas_Engine_Info_Wayland_Shm Evas_Engine_Info_Wayland_Shm;
-
-struct _Evas_Engine_Info_Wayland_Shm
-{
- /* PRIVATE - don't mess with this baby or evas will poke its tongue out */
- /* at you and make nasty noises */
- Evas_Engine_Info magic;
-
- /* engine specific data and parameters for setup */
- struct
- {
- /* the wayland shm object used to create new shm pool */
- struct wl_shm *wl_shm;
- struct zwp_linux_dmabuf_v1 *wl_dmabuf;
- struct wl_surface *wl_surface;
-
- unsigned int rotation, depth;
- Eina_Bool destination_alpha : 1;
- int edges;
-
- struct wl_display *wl_display;
- int compositor_version;
- } info;
-
- /* non-blocking or blocking mode */
- Evas_Engine_Render_Mode render_mode;
- Evas *evas;
-};
-
-#endif
/* LOCAL FUNCTIONS */
static Render_Engine *
-_render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland_Shm *einfo)
+_render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland *einfo)
{
Render_Engine *re;
Outbuf *ob;
static void *
eng_info(Evas *eo_evas EINA_UNUSED)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to allocate space for new engine info */
- if (!(einfo = calloc(1, sizeof(Evas_Engine_Info_Wayland_Shm))))
+ if (!(einfo = calloc(1, sizeof(Evas_Engine_Info_Wayland))))
return NULL;
/* fill in engine info */
static void
eng_info_free(Evas *eo_evas EINA_UNUSED, void *info)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to free previously allocated engine info */
- if ((einfo = (Evas_Engine_Info_Wayland_Shm *)info))
+ if ((einfo = (Evas_Engine_Info_Wayland *)info))
free(einfo);
}
static int
eng_setup(Evas *eo_evas, void *info)
{
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Evas_Public_Data *epd;
Render_Engine *re = NULL;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
/* try to cast to our engine info */
- if (!(einfo = (Evas_Engine_Info_Wayland_Shm *)info))
+ if (!(einfo = (Evas_Engine_Info_Wayland *)info))
return 0;
/* try to get evas public data */
eng_output_resize(void *data, int w, int h)
{
Render_Engine *re;
- Evas_Engine_Info_Wayland_Shm *einfo;
+ Evas_Engine_Info_Wayland *einfo;
Eina_Bool resize = EINA_FALSE;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
# include <wayland-client.h>
# include "linux-dmabuf-unstable-v1-client-protocol.h"
# include "../software_generic/Evas_Engine_Software_Generic.h"
-# include "Evas_Engine_Wayland_Shm.h"
+# include "Evas_Engine_Wayland.h"
# define MAX_BUFFERS 4
Shm_Surface *shm;
Dmabuf_Surface *dmabuf;
} surf;
- Evas_Engine_Info_Wayland_Shm *info;
+ Evas_Engine_Info_Wayland *info;
struct
{
void (*destroy)(Surface *surface);
int num_buff;
Outbuf_Depth depth;
- Evas_Engine_Info_Wayland_Shm *info;
+ Evas_Engine_Info_Wayland *info;
Surface *surface;
Eina_Bool _evas_dmabuf_surface_create(Surface *s, int w, int h, int num_buff);
Eina_Bool _evas_shm_surface_create(Surface *s, int w, int h, int num_buff);
-Outbuf *_evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland_Shm *info);
+Outbuf *_evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info);
void _evas_outbuf_free(Outbuf *ob);
void _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *surface_damage, Tilebuf_Rect *buffer_damage, Evas_Render_Mode render_mode);
void _evas_outbuf_idle_flush(Outbuf *ob);
}
static Surface *
-_evas_surface_create(Evas_Engine_Info_Wayland_Shm *info, int w, int h, int num_buf)
+_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, int num_buf)
{
Surface *out;
}
Outbuf *
-_evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland_Shm *info)
+_evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info)
{
Outbuf *ob = NULL;
char *num;