[gtk/glyphcache-fiddling] gl: Simplify glyph hashing



commit b9e127de83e1e3190ae600211c758f6b5a23de05
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 10 15:14:13 2019 -0400

    gl: Simplify glyph hashing
    
    On the theory that fonts and scales will
    mostly be the same, just ignore them for
    hashing.

 gsk/gl/gskglglyphcache.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c
index c8f15ca49c..40e989991e 100644
--- a/gsk/gl/gskglglyphcache.c
+++ b/gsk/gl/gskglglyphcache.c
@@ -87,9 +87,7 @@ glyph_cache_hash (gconstpointer v)
 {
   const GlyphCacheKey *key = v;
 
-  return GPOINTER_TO_UINT (key->font) ^
-         key->glyph_and_shift ^
-         key->scale;
+  return key->glyph_and_shift;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]