[gnome-photos] image-view: Log dimensions of the clip rectangle when drawing



commit 2c4c4c18a3af995817626c90ae696edd5e9c8d78
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Apr 7 09:24:01 2017 +0200

    image-view: Log dimensions of the clip rectangle when drawing
    
    ... to add more context to the performance figure.

 src/photos-image-view.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index 165321a..e7f4637 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -249,7 +249,13 @@ photos_image_view_draw_node (PhotosImageView *self, cairo_t *cr, GdkRectangle *r
                    GEGL_ABYSS_NONE);
 
   end = g_get_monotonic_time ();
-  photos_debug (PHOTOS_DEBUG_GEGL, "PhotosImageView: Node Blit: %" G_GINT64_FORMAT, end - start);
+  photos_debug (PHOTOS_DEBUG_GEGL,
+                "PhotosImageView: Node Blit: %d, %d, %d×%d, %" G_GINT64_FORMAT,
+                rect->x,
+                rect->y,
+                rect->width,
+                rect->height,
+                end - start);
 
   surface = cairo_image_surface_create_for_data (buf, CAIRO_FORMAT_ARGB32, roi.width, roi.height, stride);
   cairo_surface_set_device_scale (surface, (gdouble) scale_factor, (gdouble) scale_factor);


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