From fd4182f5c5485d55dd3960a484a7471fe9407aca Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 2 Jun 2019 20:52:26 +0000 Subject: [PATCH] gl: Log creation of glyph caches Now that they can be of different sizes, this is somewhat interesting. --- gsk/gl/gskglglyphcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index d540d76c1e..37e468eb0e 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -33,7 +33,7 @@ static void glyph_cache_key_free (gpointer v); static void glyph_cache_value_free (gpointer v); static GskGLGlyphAtlas * -create_atlas (GskGLGlyphCache *cache, +create_atlas (GskGLGlyphCache *self, int width, int height) { @@ -47,6 +47,8 @@ create_atlas (GskGLGlyphCache *cache, atlas->x = 1; atlas->image = NULL; + GSK_RENDERER_NOTE(self->renderer, GLYPH_CACHE, g_message ("Create atlas %d x %d", atlas->width, atlas->height)); + return atlas; }