projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
222b6c2
)
gl: Add debug spew to texture atlas
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 16 Oct 2019 21:13:20 +0000
(17:13 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 17 Oct 2019 12:59:34 +0000
(07:59 -0500)
gsk/gl/gskgltextureatlas.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskgltextureatlas.c
b/gsk/gl/gskgltextureatlas.c
index cd382a80aea3de9c24725d620a7cde1ac28f7109..b974f42fbca27eab3ca498414cb5868c06ffb311 100644
(file)
--- a/
gsk/gl/gskgltextureatlas.c
+++ b/
gsk/gl/gskgltextureatlas.c
@@
-100,7
+100,12
@@
gsk_gl_texture_atlases_begin_frame (GskGLTextureAtlases *self,
}
}
- GSK_NOTE(GLYPH_CACHE, if (removed->len > 0) g_message ("%d atlases left", self->atlases->len));
+ GSK_NOTE(GLYPH_CACHE, {
+ static guint timestamp;
+ if (timestamp++ % 60 == 0)
+ g_message ("%d atlases", self->atlases->len);
+ });
+
#if 0
{
@@
-162,6
+167,8
@@
gsk_gl_texture_atlases_pack (GskGLTextureAtlases *self,
/* Pack it onto that one, which surely has enough space... */
gsk_gl_texture_atlas_pack (atlas, width, height, &x, &y);
+
+ GSK_NOTE(GLYPH_CACHE, g_message ("adding new atlas"));
}
*atlas_out = atlas;