summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-05-19 10:17:52 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-05-19 10:17:52 -0500
commit69d3deea47136ce843282ca5a75aec5c99d914fb (patch)
treef8f1775e305a33abbebb49111e0ad95835f9e5f8
parentc53a6efc8ddd9c568c618d8891db48635854d5b4 (diff)
downloadenlightenment-devs/derekf/dmabuf.tar.gz
Fix dmabuf breakage of non wayland builds.devs/derekf/dmabuf
#IWearTheHatOfShame
-rw-r--r--src/bin/e_pixmap.c4
-rw-r--r--src/bin/e_pixmap.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c
index f45da37471..febb689ec0 100644
--- a/src/bin/e_pixmap.c
+++ b/src/bin/e_pixmap.c
@@ -684,10 +684,12 @@ e_pixmap_is_pixels(E_Pixmap *cp)
{
case E_PIXMAP_TYPE_X:
return EINA_FALSE;
+#ifdef HAVE_WAYLAND
case E_PIXMAP_TYPE_WL:
if (!cp->buffer) return EINA_TRUE;
if (cp->buffer->shm_buffer) return EINA_TRUE;
return EINA_FALSE;
+#endif
default:
return EINA_TRUE;
}
@@ -1043,6 +1045,7 @@ e_pixmap_alias(E_Pixmap *cp, E_Pixmap_Type type, ...)
va_end(l);
}
+#ifdef HAVE_WAYLAND
E_API Eina_Bool
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;
}
+#endif
diff --git a/src/bin/e_pixmap.h b/src/bin/e_pixmap.h
index 1a6fb026df..ed04078f7f 100644
--- a/src/bin/e_pixmap.h
+++ b/src/bin/e_pixmap.h
@@ -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, ...);
+#ifdef HAVE_WAYLAND
E_API Eina_Bool e_pixmap_dmabuf_test(struct linux_dmabuf_buffer *);
+#endif
static inline Eina_Bool
e_pixmap_is_x(const E_Pixmap *cp)