[mapguide-commits] r4396 - sandbox/rfc60/MgDev/Common/Renderers

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Dec 9 10:05:27 EST 2009


Author: uvlite
Date: 2009-12-09 10:05:19 -0500 (Wed, 09 Dec 2009)
New Revision: 4396

Modified:
   sandbox/rfc60/MgDev/Common/Renderers/AGGImageIO.cpp
Log:
RFC60 added debug code for performance evaluation

Modified: sandbox/rfc60/MgDev/Common/Renderers/AGGImageIO.cpp
===================================================================
--- sandbox/rfc60/MgDev/Common/Renderers/AGGImageIO.cpp	2009-12-09 14:59:02 UTC (rev 4395)
+++ sandbox/rfc60/MgDev/Common/Renderers/AGGImageIO.cpp	2009-12-09 15:05:19 UTC (rev 4396)
@@ -14,7 +14,7 @@
 //  License along with this library; if not, write to the Free Software
 //  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
-
+//#define _DEBUG_PNG8
 //#include "ace/OS.h"
 #include "stdafx.h"
 #include "RendererStyles.h"
@@ -673,6 +673,7 @@
  //
 int AGGImageIO::ImageCopyForcePaletteGD(gdImagePtr src, gdImagePtr dst, int method) 
 {
+    long icfp = GetTickCount(); 
     int x, y;
     int w, h;
     int c, r, g, b,color;
@@ -807,6 +808,11 @@
         }
         free(cache);
     }
+#ifdef _DEBUG_PNG8
+    printf("\n(%d) ########################### AGGImageIO::ImageCopyForcePaletteGD: Time:%6.4f (s)\n",GetCurrentThreadId(), (GetTickCount()-icfp)/1000.0);
+#endif
+
+
     if(gdImageTrueColor(dst)) return MS_FAILURE; /* result is not 8-bit */
     return MS_SUCCESS;
 }



More information about the mapguide-commits mailing list