e_comp: remove e_comp_shadows_reset 29/309229/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 4 Apr 2024 01:17:59 +0000 (10:17 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 8 Apr 2024 01:26:07 +0000 (10:26 +0900)
It is not used anymore

Change-Id: I953308f345a2cd40d3858d53dd7a7116c231a925

src/bin/e_comp.c
src/bin/e_comp_intern.h

index 68c9d6e..174862d 100644 (file)
@@ -81,106 +81,6 @@ E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
 #define CRI(...)            EINA_LOG_DOM_CRIT(_e_comp_log_dom, __VA_ARGS__)
 
 static void
-_e_comp_fps_update(void)
-{
-   static double rtime = 0.0;
-   static double rlapse = 0.0;
-   static int frames = 0;
-   static int flapse = 0;
-   double dt;
-   double tim = ecore_time_get();
-
-   /* calculate fps */
-   dt = tim - e_comp->frametimes[0];
-   e_comp->frametimes[0] = tim;
-
-   rtime += dt;
-   frames++;
-
-   if (rlapse == 0.0)
-     {
-        rlapse = tim;
-        flapse = frames;
-     }
-   else if ((tim - rlapse) >= 0.5)
-     {
-        e_comp->fps = (frames - flapse) / (tim - rlapse);
-        rlapse = tim;
-        flapse = frames;
-        rtime = 0.0;
-     }
-
-   if (conf->fps_show)
-     {
-        if (e_comp->fps_bg && e_comp->fps_fg)
-          {
-             char buf[128];
-             Evas_Coord x = 0, y = 0, w = 0, h = 0;
-             E_Zone *z;
-
-             if (e_comp->fps > 0.0) snprintf(buf, sizeof(buf), "FPS: %1.1f", e_comp->fps);
-             else snprintf(buf, sizeof(buf), "N/A");
-             evas_object_text_text_set(e_comp->fps_fg, buf);
-
-             evas_object_geometry_get(e_comp->fps_fg, NULL, NULL, &w, &h);
-             w += 8;
-             h += 8;
-             z = e_zone_current_get();
-             if (z)
-               {
-                  switch (conf->fps_corner)
-                    {
-                     case 3: // bottom-right
-                        x = z->x + z->w - w;
-                        y = z->y + z->h - h;
-                        break;
-
-                     case 2: // bottom-left
-                        x = z->x;
-                        y = z->y + z->h - h;
-                        break;
-
-                     case 1: // top-right
-                        x = z->x + z->w - w;
-                        y = z->y;
-                        break;
-                     default: // 0 // top-left
-                        x = z->x;
-                        y = z->y;
-                        break;
-                    }
-               }
-             evas_object_move(e_comp->fps_bg, x, y);
-             evas_object_resize(e_comp->fps_bg, w, h);
-             evas_object_move(e_comp->fps_fg, x + 4, y + 4);
-          }
-        else
-          {
-             e_comp->fps_bg = evas_object_rectangle_add(e_comp->evas);
-             evas_object_color_set(e_comp->fps_bg, 0, 0, 0, 128);
-             evas_object_layer_set(e_comp->fps_bg, E_LAYER_MAX);
-             evas_object_name_set(e_comp->fps_bg, "e_comp->fps_bg");
-             evas_object_lower(e_comp->fps_bg);
-             evas_object_show(e_comp->fps_bg);
-
-             e_comp->fps_fg = evas_object_text_add(e_comp->evas);
-             evas_object_text_font_set(e_comp->fps_fg, "Sans", 10);
-             evas_object_text_text_set(e_comp->fps_fg, "???");
-             evas_object_color_set(e_comp->fps_fg, 255, 255, 255, 255);
-             evas_object_layer_set(e_comp->fps_fg, E_LAYER_MAX);
-             evas_object_name_set(e_comp->fps_bg, "e_comp->fps_fg");
-             evas_object_stack_above(e_comp->fps_fg, e_comp->fps_bg);
-             evas_object_show(e_comp->fps_fg);
-          }
-     }
-   else
-     {
-        E_FREE_FUNC(e_comp->fps_fg, evas_object_del);
-        E_FREE_FUNC(e_comp->fps_bg, evas_object_del);
-     }
-}
-
-static void
 _e_comp_hooks_clean(void)
 {
    Eina_Inlist *l;
@@ -596,17 +496,6 @@ e_comp_config_get(void)
    return conf;
 }
 
-EINTERN void
-e_comp_shadows_reset(void)
-{
-   E_Client *ec;
-
-   _e_comp_fps_update();
-   E_LIST_FOREACH(e_comp->zones, e_comp_canvas_zone_update);
-   E_CLIENT_FOREACH(ec)
-     e_comp_object_frame_theme_set(ec->frame, E_COMP_OBJECT_FRAME_RESHADOW);
-}
-
 EINTERN Ecore_Window
 e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
 {
index c79a7bb..67247a9 100644 (file)
@@ -11,7 +11,6 @@ EINTERN E_Comp       *e_comp_new(void);
 EINTERN int           e_comp_internal_save(void);
 EINTERN void          e_comp_deferred_job(void);
 EINTERN void          e_comp_client_post_update_add(E_Client *ec);
-EINTERN void          e_comp_shadows_reset(void);
 EINTERN Ecore_Window  e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y);
 EINTERN void          e_comp_util_wins_print(void);
 EINTERN void          e_comp_ignore_win_add(E_Pixmap_Type type, Ecore_Window win);