Author: gnorton
Date: 2005-04-10 16:07:36 -0400 (Sun, 10 Apr 2005)
New Revision: 42765

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs
   trunk/mcs/class/System.Drawing/System.Drawing/carbonFunctions.cs
Log:
2005-04-10  Geoff Norton  <[EMAIL PROTECTED]>

        * Graphics.cs:
          carbonFunctions.cs:
                Use CGContextSynchronize instead of CGContextFlush.  This saves
                on average 20000 ticks per drawing operation.




Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-04-10 
18:31:17 UTC (rev 42764)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-04-10 
20:07:36 UTC (rev 42765)
@@ -1,3 +1,10 @@
+2005-04-10  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * Graphics.cs:
+         carbonFunctions.cs:
+               Use CGContextSynchronize instead of CGContextFlush.  This saves
+               on average 20000 ticks per drawing operation.
+
 2005-04-04 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * Color.cs: take into account the name color in == and != operators

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs   2005-04-10 
18:31:17 UTC (rev 42764)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Graphics.cs   2005-04-10 
20:07:36 UTC (rev 42765)
@@ -1225,7 +1225,7 @@
                        Status status = GDIPlus.GdipFlush (nativeObject, 
intention);
                         GDIPlus.CheckStatus (status);                    
                        if (GDIPlus.UseQuartzDrawable)
-                               Carbon.CGContextFlush (GDIPlus.Display);
+                               Carbon.CGContextSynchronize (GDIPlus.Display);
                }
 
                [EditorBrowsable (EditorBrowsableState.Advanced)]               

Modified: trunk/mcs/class/System.Drawing/System.Drawing/carbonFunctions.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/carbonFunctions.cs    
2005-04-10 18:31:17 UTC (rev 42764)
+++ trunk/mcs/class/System.Drawing/System.Drawing/carbonFunctions.cs    
2005-04-10 20:07:36 UTC (rev 42765)
@@ -82,6 +82,8 @@
                 internal static extern void CGContextScaleCTM (IntPtr cgc, 
double x, double y);
                 [DllImport 
("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]
                 internal static extern void CGContextFlush (IntPtr cgc);
+                [DllImport 
("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")]
+                internal static extern void CGContextSynchronize (IntPtr cgc);
        }
 
        internal struct CGSize {

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

Reply via email to