From: Matthias Clasen Date: Sun, 2 Jul 2023 02:31:28 +0000 (-0400) Subject: glyph cache: Add debug output X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~29^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e9c47e6f7114a32d0b32e1614b87dcb8cf97fff;p=gtk4.git glyph cache: Add debug output Show the size of data uploaded per glyph. --- diff --git a/gsk/gl/gskglglyphlibrary.c b/gsk/gl/gskglglyphlibrary.c index 22ffeb0324..9b8c78fc30 100644 --- a/gsk/gl/gskglglyphlibrary.c +++ b/gsk/gl/gskglglyphlibrary.c @@ -28,6 +28,8 @@ #include "gskgldriverprivate.h" #include "gskglglyphlibraryprivate.h" +#include "gskdebugprivate.h" + #define MAX_GLYPH_SIZE 128 G_DEFINE_TYPE (GskGLGlyphLibrary, gsk_gl_glyph_library, GSK_TYPE_GL_TEXTURE_LIBRARY) @@ -407,6 +409,8 @@ gsk_gl_glyph_library_add (GskGLGlyphLibrary *self, width = (int) ceil (ink_rect.width * key->scale / 1024.0); height = (int) ceil (ink_rect.height * key->scale / 1024.0); + GSK_DEBUG (GLYPH_CACHE, "font %p glyph %u: %u x %u pixels", key->font, key->glyph, width, height); + value = gsk_gl_texture_library_pack (tl, key, sizeof *value,