[gnome-photos] image-view: Log the zoom value being used



commit d053e337cebe9df7ba46db0a6a9df07e58bffe95
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jul 13 17:27:32 2018 +0200

    image-view: Log the zoom value being used
    
    This makes it easier to understand the interpolation algorithm being
    selected by GEGL_BUFFER_FILTER_AUTO, which is interesting when
    measuring performance.

 src/photos-image-view.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index cea011e0..5ebd25bb 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -580,11 +580,12 @@ photos_image_view_draw_node (PhotosImageView *self, cairo_t *cr, GdkRectangle *r
 
   end = g_get_monotonic_time ();
   photos_debug (PHOTOS_DEBUG_GEGL,
-                "PhotosImageView: Node Blit: %d, %d, %d×%d, %d, %" G_GINT64_FORMAT,
+                "PhotosImageView: Node Blit: %d, %d, %d×%d, %.4f, %d, %" G_GINT64_FORMAT,
                 rect->x,
                 rect->y,
                 rect->width,
                 rect->height,
+                self->zoom_visible_scaled,
                 buffer_flags,
                 end - start);
 


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