Increase request cache size.
authorbungeman <bungeman@google.com>
Fri, 8 Apr 2016 15:57:00 +0000 (08:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 Apr 2016 15:57:00 +0000 (08:57 -0700)
BUG=chromium:424082
See comment #63.

Review URL: https://codereview.chromium.org/1875733002

src/ports/SkFontHost_fontconfig.cpp

index f91b7a0..e42929a 100644 (file)
@@ -70,7 +70,8 @@ SK_DECLARE_STATIC_MUTEX(gSkFontHostRequestCacheMutex);
 class SkFontHostRequestCache {
 
     // The value of maxSize here is a compromise between cache hits and cache size.
-    static const size_t gMaxSize = 1 << 12;
+    // See https://crbug.com/424082#63 for reason for current size.
+    static const size_t gMaxSize = 1 << 15;
 
     static SkFontHostRequestCache& Get() {
         gSkFontHostRequestCacheMutex.assertHeld();