Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1118)

Unified Diff: src/ports/SkFontHost_fontconfig.cpp

Issue 1875733002: Increase request cache size. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment for size. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontHost_fontconfig.cpp
diff --git a/src/ports/SkFontHost_fontconfig.cpp b/src/ports/SkFontHost_fontconfig.cpp
index f91b7a0c2ce33a00b3662d2988ec8065c8efb4e2..e42929a264496ce216f72e5b3a453c18af8f95e0 100644
--- a/src/ports/SkFontHost_fontconfig.cpp
+++ b/src/ports/SkFontHost_fontconfig.cpp
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698