Author: mdk
Date: 2008-02-15 09:12:44 -0500 (Fri, 15 Feb 2008)
New Revision: 95754

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/uielement.cpp
Log:
2008-02-15  Michael Dominic K.  <[EMAIL PROTECTED]>

        * src/uielement.cpp: Moving the debug timers for rendering slightly and
        uncommenting them so that they work when TIMERS is enabled.


Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-02-15 13:58:07 UTC (rev 95753)
+++ trunk/moon/src/ChangeLog    2008-02-15 14:12:44 UTC (rev 95754)
@@ -1,5 +1,10 @@
 2008-02-15  Michael Dominic K.  <[EMAIL PROTECTED]> 
 
+       * src/uielement.cpp: Moving the debug timers for rendering slightly and
+       uncommenting them so that they work when TIMERS is enabled.
+
+2008-02-15  Michael Dominic K.  <[EMAIL PROTECTED]> 
+
        * src/runtime.cpp:
        * src/runtime.h: Adding an extra DEBUG_MARKER_KEY define (disabled by
        default) that changes your 'd' key into a special debug key. When 
pressed,

Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp        2008-02-15 13:58:07 UTC (rev 95753)
+++ trunk/moon/src/uielement.cpp        2008-02-15 14:12:44 UTC (rev 95754)
@@ -490,11 +490,15 @@
        GetSurface()->uielements_rendered_back_to_front ++;
 #endif
 
+       STARTTIMER (UIElement_render, Type::Find (GetObjectType())->name);
+
        PreRender (cr, region, false);
 
        Render (cr, region);
 
        PostRender (cr, region, false);
+
+       ENDTIMER (UIElement_render, Type::Find (GetObjectType())->name);
 }
 
 void
@@ -584,7 +588,6 @@
 {
        double local_opacity = GetValue (OpacityProperty)->AsDouble();
 
-       // STARTTIMER (UIElement_render, Type::Find (GetObjectType())->name);
        cairo_save (cr);
 
        cairo_set_matrix (cr, &absolute_xform);
@@ -631,8 +634,6 @@
        }
        cairo_restore (cr);
        
-       // ENDTIMER (UIElement_render, Type::Find (GetObjectType())->name);
-
        if (moonlight_flags & RUNTIME_INIT_SHOW_CLIPPING) {
                cairo_save (cr);
                cairo_new_path (cr);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to