e_output: remove unnecessary e_comp_canvas_norender_push/pop 12/271312/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 26 Jan 2022 11:28:57 +0000 (20:28 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 18 Feb 2022 02:15:32 +0000 (11:15 +0900)
rendering and displaying is done in main thread.
e_comp_canvas_norender_push/pop is unnecessary.

Change-Id: I95f942612b0fbe4433c060fc7fa9ec942ddad732

src/bin/e_output.c

index c814e7c..89ca540 100644 (file)
@@ -742,8 +742,6 @@ _e_output_primary_update(E_Output *output)
         E_Output_Mode *mode = NULL;
         int w, h;
 
-        e_comp_canvas_norender_push();
-
         mode = e_output_best_mode_find(output);
         if (!mode)
           {
@@ -780,7 +778,6 @@ _e_output_primary_update(E_Output *output)
           {
              if (w == e_comp->h && h == e_comp->w)
                {
-                  e_comp_canvas_norender_pop();
                   return;
                }
              ecore_evas_resize(e_comp->ee, mode->h, mode->w);
@@ -790,10 +787,8 @@ _e_output_primary_update(E_Output *output)
         else
           {
              if (w == e_comp->w && h == e_comp->h)
-               {
-                  e_comp_canvas_norender_pop();
-                  return;
-               }
+               return;
+
              ecore_evas_resize(e_comp->ee, mode->w, mode->h);
              e_comp->w = mode->w;
              e_comp->h = mode->h;
@@ -802,8 +797,6 @@ _e_output_primary_update(E_Output *output)
         ecore_event_add(E_EVENT_SCREEN_CHANGE, NULL, NULL, NULL);
 
         _e_output_client_resize(e_comp->w, e_comp->h);
-
-        e_comp_canvas_norender_pop();
      }
    else
      {
@@ -2912,8 +2905,6 @@ e_output_primary_mode_change(E_Output *output, E_Output_Mode *mode)
      }
    EINA_SAFETY_ON_FALSE_RETURN_VAL(found == EINA_TRUE, EINA_FALSE);
 
-   e_comp_canvas_norender_push();
-
    if (e_output_mode_apply(output, mode) == EINA_FALSE)
      {
         EOERR("fail to e_output_mode_apply.", output);
@@ -2924,7 +2915,6 @@ e_output_primary_mode_change(E_Output *output, E_Output_Mode *mode)
    if (w == e_comp->w && h == e_comp->h)
      {
         _e_output_render_update(output);
-        e_comp_canvas_norender_pop();
         return EINA_TRUE;
      }
 
@@ -2936,8 +2926,6 @@ e_output_primary_mode_change(E_Output *output, E_Output_Mode *mode)
 
    _e_output_client_resize(e_comp->w, e_comp->h);
 
-   e_comp_canvas_norender_pop();
-
    return EINA_TRUE;
 }
 
@@ -4055,12 +4043,9 @@ e_output_external_mode_change(E_Output *output, E_Output_Mode *mode)
    e_output_size_get(output, &w, &h);
    e_output_size_get(output_primary, &p_w, &p_h);
 
-   e_comp_canvas_norender_push();
-
    if (e_output_mode_apply(output, mode) == EINA_FALSE)
      {
         EOERR("fail to e_output_mode_apply.", output);
-        e_comp_canvas_norender_pop();
         return EINA_FALSE;
      }
 
@@ -4084,7 +4069,6 @@ e_output_external_mode_change(E_Output *output, E_Output_Mode *mode)
      }
 
    _e_output_render_update(output_primary);
-   e_comp_canvas_norender_pop();
 
    EOINF("e_output_external_reset done.(%dx%d)", output, mode->w, mode->h);