antognolli pushed a commit to branch master.

commit de0d0dce2ed708bf00e70da5b9ffd0b36df75e0c
Author: Rafael Antognolli <[email protected]>
Date:   Mon Apr 29 12:50:45 2013 -0300

    evas/smart: Directly access object geometry to improve performance.
    
    There's no need to get the object geometry through
    evas_object_geometry_get(), since it is not converted anymore (there's
    no offset).
---
 src/lib/evas/canvas/evas_object_smart_clipped.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_smart_clipped.c 
b/src/lib/evas/canvas/evas_object_smart_clipped.c
index 888a0b8..d0a7372 100644
--- a/src/lib/evas/canvas/evas_object_smart_clipped.c
+++ b/src/lib/evas/canvas/evas_object_smart_clipped.c
@@ -39,10 +39,8 @@ _smart_move_children_relative(Eo *eo_obj, void *_pd 
EINA_UNUSED, va_list *list)
 
         if (child->delete_me) continue;
         if (child->is_static_clip) continue;
-        // TODO: shortcut again, as we are in evas
-        evas_object_geometry_get(child->object, &orig_x, &orig_y, NULL, NULL);
-        // orig_x = child->cur->geometry.x;
-        // orig_y = child->cur->geometry.y;
+        orig_x = child->cur->geometry.x;
+        orig_y = child->cur->geometry.y;
        evas_object_move(child->object, orig_x + dx, orig_y + dy);
      }
 }

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to