To show underlay plane, added render_copy option for evas object of 24bit window... 88/37788/1 accepted/tizen/common/20150407.102151 accepted/tizen/mobile/20150407.084655 accepted/tizen/tv/20150407.064443 accepted/tizen/wearable/20150407.063234 submit/tizen/20150406.070142
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 6 Apr 2015 06:30:25 +0000 (15:30 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 6 Apr 2015 06:30:25 +0000 (15:30 +0900)
Change-Id: Ie3d2222d19e6c9541ba76c07106ba81e29fc3f38

src/bin/e_comp_object.c

index 460e8222f4852f726b04e7101b105a6c732f380b..191b8a7bab68c47c62299fdb09956c0722c4e15b 100644 (file)
@@ -3315,6 +3315,17 @@ e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set)
         set = (cw->ec->comp->gl && e_comp_config_get()->texture_from_pixmap && (!cw->ec->shaped));
         if (set)
           set = e_pixmap_native_surface_init(cw->ec->pixmap, &ns);
+
+        /* to show underlay plane on x11, compositor should fill
+         * alpha value of COW with given 24bit window's alpha.
+         */
+        if (set)
+          {
+             E_Pixmap_Type type;
+             type = e_pixmap_type_get(cw->ec->pixmap);
+             if ((type == E_PIXMAP_TYPE_X) && (!cw->ec->argb))
+               evas_object_render_op_set(cw->obj, EVAS_RENDER_COPY);
+          }
      }
    cw->native = set;