remove nocomp_want 20/136620/4
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 30 Jun 2017 10:22:27 +0000 (19:22 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 3 Jul 2017 07:15:24 +0000 (07:15 +0000)
the condition of comp/nocomp shall be defined only in job handler

Change-Id: I2dce76f4419733f46095b226fe76cb089f892d13

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

index 76fb027..6e29f57 100644 (file)
@@ -895,10 +895,9 @@ _e_comp_hwc_cb_begin_timeout(void *data EINA_UNUSED)
 {
    e_comp->nocomp_delay_timer = NULL;
 
-   if (e_comp->nocomp_override == 0 && _e_comp_hwc_usable())
+   if (e_comp->nocomp_override == 0)
      {
-        e_comp->nocomp_want = 1;
-        _e_comp_hwc_begin();
+        e_comp_render_queue();
      }
    return EINA_FALSE;
 }
@@ -911,7 +910,6 @@ e_comp_hwc_end(const char *location)
    Eina_List *l;
    Eina_Bool fully_hwc = (e_comp->hwc_mode == E_HWC_MODE_FULL) ? EINA_TRUE : EINA_FALSE;
 
-   e_comp->nocomp_want = 0;
    E_FREE_FUNC(e_comp->nocomp_delay_timer, ecore_timer_del);
    _hwc_reserved_clean();
 
@@ -1068,7 +1066,6 @@ setup_hwcompose:
                }
              else
                {
-                  e_comp->nocomp_want = 1;
                   _e_comp_hwc_begin();
                }
           }
@@ -1419,9 +1416,7 @@ _e_comp_override_expire(void *data EINA_UNUSED)
    if (e_comp->nocomp_override <= 0)
      {
         e_comp->nocomp_override = 0;
-#ifdef ENABLE_HWC_MULTI
-        if (e_comp->nocomp_want) _e_comp_hwc_begin();
-#endif
+        e_comp_render_queue();
      }
    return EINA_FALSE;
 }
index c999e40..625ee7d 100644 (file)
@@ -140,7 +140,6 @@ struct _E_Comp
    Ecore_Timer    *nocomp_override_timer;
    int             nocomp_override; //number of times hwc override has been requested
    Eina_Bool       nocomp : 1; // TODO: remove it from E_Comp!!
-   Eina_Bool       nocomp_want : 1;
    int             hwc_mode;
    Eina_Bool       hwc : 1;
    Eina_Bool       hwc_deactive : 1; // deactive hwc policy