[gtk+/wip/ebassi/gsk-renderer: 475/545] gsk: Add texture size to debug message



commit a4bae3535573efd11d9dba05dab65eef177dfe9a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jul 28 16:20:26 2016 +0100

    gsk: Add texture size to debug message

 gsk/gskglrenderer.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskglrenderer.c b/gsk/gskglrenderer.c
index f4e1d57..093ed46 100644
--- a/gsk/gskglrenderer.c
+++ b/gsk/gskglrenderer.c
@@ -411,9 +411,10 @@ render_item (GskGLRenderer *self,
   glUniformMatrix4fv (item->render_data.mvp_location, 1, GL_FALSE, mvp);
 
   /* Draw the quad */
-  GSK_NOTE (OPENGL, g_print ("Drawing item <%s>[%p] with opacity: %g\n",
+  GSK_NOTE (OPENGL, g_print ("Drawing item <%s>[%p] (w:%g, h:%g) with opacity: %g\n",
                              item->name,
                              item,
+                             item->size.width, item->size.height,
                              item->opaque ? 1 : item->opacity));
 
   glDrawArrays (GL_TRIANGLES, 0, N_VERTICES);
@@ -459,9 +460,10 @@ render_item (GskGLRenderer *self,
       glUniformMatrix4fv (item->render_data.mvp_location, 1, GL_FALSE, mvp);
 
       /* Draw the quad */
-      GSK_NOTE (OPENGL, g_print ("Drawing offscreen item <%s>[%p] with opacity: %g\n",
+      GSK_NOTE (OPENGL, g_print ("Drawing offscreen item <%s>[%p] (w:%g, h:%g) with opacity: %g\n",
                                  item->name,
                                  item,
+                                 item->size.width, item->size.height,
                                  item->opacity));
 
       glDrawArrays (GL_TRIANGLES, 0, N_VERTICES);


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