e_comp_object: remove the e_comp_object_shape_apply function 90/321990/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 1 Apr 2025 23:15:09 +0000 (08:15 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 2 Apr 2025 02:05:04 +0000 (11:05 +0900)
This function is not used.

Change-Id: Id9f43c40f40d0e97cbc3a865182d0df52ac24b11

src/bin/compmgr/e_comp_object.c
src/bin/compmgr/e_comp_object_intern.h

index d5111bcf700dc121985133de6fbd426e75a1e482..9d729eff8552def1bc02980ba3a3b0fc921c4caf 100644 (file)
@@ -2986,54 +2986,6 @@ e_comp_object_render_update_del(Evas_Object *obj)
      }
 }
 
-EINTERN void
-e_comp_object_shape_apply(Evas_Object *obj)
-{
-   Eina_List *l;
-   Evas_Object *o;
-   unsigned int *pix, *p;
-   int w, h, px, py;
-
-   API_ENTRY;
-   if (!cw->ec) return; //NYI
-   if (cw->external_content) return;
-   if (cw->native)
-     {
-        ERR("BUGGER: shape with native surface? cw=%p", cw);
-        return;
-     }
-   evas_object_image_size_get(cw->obj, &w, &h);
-   if ((w < 1) || (h < 1)) return;
-
-   _e_comp_object_alpha_set(cw);
-   EINA_LIST_FOREACH(cw->obj_mirror, l, o)
-      evas_object_image_alpha_set(o, 1);
-
-   p = pix = evas_object_image_data_get(cw->obj, 1);
-   if (!pix)
-     {
-        evas_object_image_data_set(cw->obj, pix);
-        return;
-     }
-
-     for (py = 0; py < h; py++)
-       {
-          for (px = 0; px < w; px++)
-            *p |= 0xff000000;
-       }
-
-   evas_object_image_data_set(cw->obj, pix);
-   evas_object_image_data_update_add(cw->obj, 0, 0, w, h);
-   EINA_LIST_FOREACH(cw->obj_mirror, l, o)
-     {
-        evas_object_image_data_set(o, pix);
-        evas_object_image_data_update_add(o, 0, 0, w, h);
-     }
-// don't need to fix alpha chanel as blending
-// should be totally off here regardless of
-// alpha channel content
-}
-
 static void
 _e_comp_object_clear(E_Comp_Object *cw)
 {
index 6662861480e1eeb85198af26879818464bdf7e58..a51950458770bea7e87cb804525e3a314bfa8a00 100644 (file)
@@ -170,7 +170,6 @@ EINTERN Eina_Bool e_comp_object_frame_exists(Evas_Object *obj);
 EINTERN Eina_Bool e_comp_object_frame_theme_set(Evas_Object *obj, const char *name);
 
 EINTERN Eina_Bool e_comp_object_damage_exists(Evas_Object *obj);
-EINTERN void      e_comp_object_shape_apply(Evas_Object *obj);
 EINTERN void      e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool set);
 EINTERN void      e_comp_object_size_update(Evas_Object *obj, int w, int h);