discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=31b6e87495d21b25e6f9f19c0560856d0f4ea7c3

commit 31b6e87495d21b25e6f9f19c0560856d0f4ea7c3
Author: Hermet Park <[email protected]>
Date:   Mon Aug 6 07:23:48 2018 -0400

    evas image: code refactoring.
    
    Summary: remove duplicated, no logical changes.
    
    Reviewers: #committers, zmike
    
    Reviewed By: #committers, zmike
    
    Subscribers: cedric, #committers, zmike
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D6738
---
 src/lib/evas/canvas/evas_object_image.c | 24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_image.c 
b/src/lib/evas/canvas/evas_object_image.c
index 2d217e3ad7..c5bdc58184 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -2331,14 +2331,8 @@ evas_object_image_render_pre(Evas_Object *eo_obj,
         evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj);
         goto done;
      }
-   /* if it changed render op */
-   if (obj->cur->render_op != obj->prev->render_op)
-     {
-        evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj);
-        goto done;
-     }
-   /* if it changed anti_alias */
-   if (obj->cur->anti_alias != obj->prev->anti_alias)
+   if ((obj->cur->render_op != obj->prev->render_op) ||  /* if it changed 
render op */
+       (obj->cur->anti_alias != obj->prev->anti_alias))  /* if it changed 
anti_alias */
      {
         evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, obj);
         goto done;
@@ -2373,19 +2367,11 @@ evas_object_image_render_pre(Evas_Object *eo_obj,
              evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, 
obj);
              goto done;
           }
-        if (o->dirty_pixels && !o->pixels->pixel_updates)
-          {
+        if ((o->cur->frame != o->prev->frame) ||
+            (o->cur->orient != o->prev->orient) ||
              /* Legacy compatibility (invalid behaviour): dirty_set() used to
               * trigger full image redraw, even though this was not correct. */
-             evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, 
obj);
-             goto done;
-          }
-        if (o->cur->frame != o->prev->frame)
-          {
-             evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, 
obj);
-             goto done;
-          }
-        if (o->cur->orient != o->prev->orient)
+            (o->dirty_pixels && !o->pixels->pixel_updates))
           {
              evas_object_render_pre_prev_cur_add(&e->clip_changes, eo_obj, 
obj);
              goto done;

-- 


Reply via email to