Dmabuf_Surface *surface;
if ((!w) || (!h)) return;
- surface = s->surf.dmabuf;
+ surface = s->dmabuf;
EINA_LIST_FOREACH_SAFE(surface->buffers, l, tmp, b)
{
int stride = b->stride;
Ecore_Wl2_Buffer *b;
void *ptr;
- surface = s->surf.dmabuf;
+ surface = s->dmabuf;
b = surface->current;
if (!b) return NULL;
Eina_List *l;
Dmabuf_Surface *surface;
- surface = s->surf.dmabuf;
+ surface = s->dmabuf;
surface->current = _evas_dmabuf_surface_wait(surface);
if (!surface->current)
{
Ecore_Wl2_Buffer *b;
Ecore_Wl2_Window *win;
- surface = s->surf.dmabuf;
+ surface = s->dmabuf;
b = surface->current;
if (!b) return;
Dmabuf_Surface *surface;
if (!s) return;
- surface = s->surf.dmabuf;
+ surface = s->dmabuf;
EINA_LIST_FREE(surface->buffers, b)
ecore_wl2_buffer_destroy(b);
types |= ECORE_WL2_BUFFER_DMABUF;
if (!(surf = calloc(1, sizeof(Dmabuf_Surface)))) goto err;
- out->surf.dmabuf = surf;
+ out->dmabuf = surf;
surf->surface = out;
surf->alpha = info->info.destination_alpha;
# define MAX_BUFFERS 4
-typedef struct _Shm_Surface Shm_Surface;
typedef struct _Dmabuf_Surface Dmabuf_Surface;
typedef struct _Surface Surface;
struct _Surface
{
Outbuf *ob;
- union
- {
- Shm_Surface *shm;
- Dmabuf_Surface *dmabuf;
- } surf;
+ Dmabuf_Surface *dmabuf;
Evas_Engine_Info_Wayland *info;
struct
{