From b4bcb1dc238075d9a9249a274a43b4eecc1d352c Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 18 Feb 2016 11:05:58 -0600 Subject: [PATCH] Don't use e_pixmap_image_data_argb_convert for wayland images All we really need for wayland is to set alpha properly, so we can save the conversion/copy when doing XRGB. --- src/bin/e_comp_object.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index e1f6ea3a0..68329ae30 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -3730,6 +3730,19 @@ e_comp_object_render(Evas_Object *obj) evas_object_image_pixels_dirty_set(cw->obj, EINA_FALSE); RENDER_DEBUG("RENDER SIZE: %dx%d", pw, ph); + + if (e_comp->comp_type == E_PIXMAP_TYPE_WL) + { + Eina_Bool alpha = e_pixmap_image_is_argb(cw->ec->pixmap); + + it = NULL; + pix = e_pixmap_image_data_get(cw->ec->pixmap); + evas_object_image_data_set(cw->obj, cw->blanked ? NULL : pix); + evas_object_image_alpha_set(cw->obj, alpha); + ret = EINA_TRUE; + goto end; + } + it = eina_tiler_iterator_new(cw->pending_updates); if (e_pixmap_image_is_argb(cw->ec->pixmap)) {