summaryrefslogtreecommitdiff
path: root/gsk/gl/gskglglyphcacheprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-10-12 18:26:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-10-12 18:53:22 -0400
commit7bff3abe8e141955f2562991d0d93bd8e26b5324 (patch)
tree77f93f8f8228f870d0c3c9b8419646ccf945a134 /gsk/gl/gskglglyphcacheprivate.h
parente46a7ca70687b7ef15c237815bfe3f9269fc3956 (diff)
downloadgtk+-7bff3abe8e141955f2562991d0d93bd8e26b5324.tar.gz
glyph cache: Fix handling of big glyphs
We were putting big glyphs in the cache, in their own texture, but forgetting to mark the texture as permanent, so it could be reused, leading to occasional misrendering. Fix this by marking these textures as permanent, and explicitly freeing them when the cache entry gets old.
Diffstat (limited to 'gsk/gl/gskglglyphcacheprivate.h')
-rw-r--r--gsk/gl/gskglglyphcacheprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gsk/gl/gskglglyphcacheprivate.h b/gsk/gl/gskglglyphcacheprivate.h
index 75f7a8de19..16a6feb471 100644
--- a/gsk/gl/gskglglyphcacheprivate.h
+++ b/gsk/gl/gskglglyphcacheprivate.h
@@ -73,6 +73,7 @@ GskGLGlyphCache * gsk_gl_glyph_cache_new (GdkDisplay *display
GskGLGlyphCache * gsk_gl_glyph_cache_ref (GskGLGlyphCache *self);
void gsk_gl_glyph_cache_unref (GskGLGlyphCache *self);
void gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self,
+ GskGLDriver *driver,
GPtrArray *removed_atlases);
void gsk_gl_glyph_cache_lookup_or_add (GskGLGlyphCache *self,
GlyphCacheKey *lookup,