gimp r27319 - in trunk: . app/actions



Author: martinn
Date: Sun Oct 19 08:40:01 2008
New Revision: 27319
URL: http://svn.gnome.org/viewvc/gimp?rev=27319&view=rev

Log:
* app/actions/debug-commands.c
(debug_dump_projection_benchmarking_cmd_callback): In addition to
priting how long it takes to validate the projection, also print
the number of layers in the image.


Modified:
   trunk/ChangeLog
   trunk/app/actions/debug-commands.c

Modified: trunk/app/actions/debug-commands.c
==============================================================================
--- trunk/app/actions/debug-commands.c	(original)
+++ trunk/app/actions/debug-commands.c	Sun Oct 19 08:40:01 2008
@@ -31,6 +31,7 @@
 #include "base/tile.h"
 
 #include "core/gimp.h"
+#include "core/gimpcontainer.h"
 #include "core/gimpcontext.h"
 #include "core/gimpimage.h"
 #include "core/gimpprojection.h"
@@ -166,7 +167,7 @@
   tiles      = gimp_projection_get_tiles (projection);
   timer      = g_timer_new ();
 
-  if (projection &&tiles && timer)
+  if (projection && tiles && timer)
     {
       int x = 0;
       int y = 0;
@@ -189,7 +190,8 @@
         }
       g_timer_stop (timer);
 
-      g_print ("Validation of entire projection took %.0f ms\n",
+      g_print ("Validation of the entire %d-layered projection took %.0f ms\n",
+               gimp_container_num_children (gimp_image_get_layers (image)),
                1000 * g_timer_elapsed (timer, NULL));
 
       g_timer_destroy (timer);



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