[mutter] Revert "ClutterActor: Optimize away idempotent scale/position updates"



commit 4d2647cdbc6cc2b5a41eb8fcd5183a77819283dd
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Thu Oct 19 19:53:13 2017 -0500

    Revert "ClutterActor: Optimize away idempotent scale/position updates"
    
    This reverts commit 5cb5baa7d42712f9e0db8dfaa0485e2d833e4d83.
    
    There's a cascade of regressions that needs to be sorted out before
    relanding this:
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784314

 clutter/clutter/clutter-actor.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index dbb202f..6954f03 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -4828,8 +4828,7 @@ clutter_actor_set_scale_factor (ClutterActor      *self,
   g_assert (pspec != NULL);
   g_assert (scale_p != NULL);
 
-  if (*scale_p != factor)
-    _clutter_actor_create_transition (self, pspec, *scale_p, factor);
+  _clutter_actor_create_transition (self, pspec, *scale_p, factor);
 }
 
 static inline void
@@ -10264,10 +10263,9 @@ clutter_actor_set_position (ClutterActor *self,
   cur_position.x = clutter_actor_get_x (self);
   cur_position.y = clutter_actor_get_y (self);
 
-  if (!clutter_point_equals (&cur_position, &new_position))
-    _clutter_actor_create_transition (self, obj_props[PROP_POSITION],
-                                      &cur_position,
-                                      &new_position);
+  _clutter_actor_create_transition (self, obj_props[PROP_POSITION],
+                                    &cur_position,
+                                    &new_position);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]