up glyphcache hash table to 12bits (from 8bits).
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Nov 2011 15:20:15 +0000 (15:20 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Nov 2011 15:20:15 +0000 (15:20 +0000)
Experimenting shows that is the sweetspot when drawing lots of CJK

git-svn-id: http://skia.googlecode.com/svn/trunk@2582 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkGlyphCache.h

index ed58175fcc3ab54e65acc545cca87a597f2ed09f..9e630cd0d029aa21fb6a32ac86c19a1dce7d8ad6 100644 (file)
@@ -220,7 +220,7 @@ private:
     SkPaint::FontMetrics fFontMetricsY;
 
     enum {
-        kHashBits   = 8,
+        kHashBits   = 12,
         kHashCount  = 1 << kHashBits,
         kHashMask   = kHashCount - 1
     };