forked from enlightenment/enlightenment
Fix dmabuf breakage of non wayland builds.
#IWearTheHatOfShame
This commit is contained in:
parent
bd1847162e
commit
e5e875ded8
|
@ -684,10 +684,12 @@ e_pixmap_is_pixels(E_Pixmap *cp)
|
||||||
{
|
{
|
||||||
case E_PIXMAP_TYPE_X:
|
case E_PIXMAP_TYPE_X:
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
case E_PIXMAP_TYPE_WL:
|
case E_PIXMAP_TYPE_WL:
|
||||||
if (!cp->buffer) return EINA_TRUE;
|
if (!cp->buffer) return EINA_TRUE;
|
||||||
if (cp->buffer->shm_buffer) return EINA_TRUE;
|
if (cp->buffer->shm_buffer) return EINA_TRUE;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
@ -1043,6 +1045,7 @@ e_pixmap_alias(E_Pixmap *cp, E_Pixmap_Type type, ...)
|
||||||
va_end(l);
|
va_end(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
E_API Eina_Bool
|
E_API Eina_Bool
|
||||||
e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf)
|
e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf)
|
||||||
{
|
{
|
||||||
|
@ -1064,3 +1067,4 @@ e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *dmabuf)
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -53,7 +53,9 @@ E_API void e_pixmap_image_opaque_get(E_Pixmap *cp, int *x, int *y, int *w, int *
|
||||||
|
|
||||||
E_API void e_pixmap_alias(E_Pixmap *cp, E_Pixmap_Type type, ...);
|
E_API void e_pixmap_alias(E_Pixmap *cp, E_Pixmap_Type type, ...);
|
||||||
|
|
||||||
|
#ifdef HAVE_WAYLAND
|
||||||
E_API Eina_Bool e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *);
|
E_API Eina_Bool e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *);
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline Eina_Bool
|
static inline Eina_Bool
|
||||||
e_pixmap_is_x(const E_Pixmap *cp)
|
e_pixmap_is_x(const E_Pixmap *cp)
|
||||||
|
|
Loading…
Reference in New Issue