From 3059d76b4ced4dc7dd52d7d20d5406308d8923ca Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 2 Jun 2019 22:22:17 +0000 Subject: [PATCH] Add code to dump out the glyph caches --- gsk/gl/gskglglyphcache.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 6e81b1b793..8f80ac6552 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -446,4 +446,20 @@ gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self) } g_hash_table_unref (removed); + +#if 0 + for (i = 0; i < self->atlases->len; i++) + { + GskGLGlyphAtlas *atlas = g_ptr_array_index (self->atlases, i); + + if (atlas->image) + { + char *filename; + + filename = g_strdup_printf ("glyphatlas%d-%ld.png", i, self->timestamp); + gsk_gl_image_write_to_png (atlas->image, self->gl_driver, filename); + g_free (filename); + } + } +#endif }