discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6f7ed23bc9506d938d5b9bfe75666a3b736628db

commit 6f7ed23bc9506d938d5b9bfe75666a3b736628db
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Feb 18 11:05:58 2016 -0600

    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 500f70a..f7c8590 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3697,6 +3697,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))
      {

-- 


Reply via email to