gl: Do less work on glyph caching
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 15:03:04 +0000 (11:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 15:35:46 +0000 (11:35 -0400)
commit977ac2b31fb0d739c5386e4ba6799a53700fe4f5
treea9952929952e78dfe6303073cf8b39fdb2a7d8a3
parentbcdc3b706c0a321683999630c0b030c170082e5e
gl: Do less work on glyph caching

There is no need for us to be very precise about
aging the glyph entries. It is enough to check
occasionally and mark old entries. This reduces
the overhead of work we do every frame on the
caches, at the cost of letting glyphs linger
a bit longer in the cache.
gsk/gl/gskglglyphcache.c
gsk/gl/gskglglyphcacheprivate.h