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

Unified Diff: ui/gfx/font_render_params_linux.cc

Issue 796623005: Increase the cache size of fontconfig queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: ui/gfx/font_render_params_linux.cc
diff --git a/ui/gfx/font_render_params_linux.cc b/ui/gfx/font_render_params_linux.cc
index 33274ead6d15c6ac5fac82ad48fc9b8361b2e531..5698f0d76cd08ffb85d42092918fdc5ed7051d38 100644
--- a/ui/gfx/font_render_params_linux.cc
+++ b/ui/gfx/font_render_params_linux.cc
@@ -31,7 +31,7 @@ float device_scale_factor_for_internal_display = 1.0f;
#endif
// Number of recent GetFontRenderParams() results to cache.
-const size_t kCacheSize = 64;
+const size_t kCacheSize = 256;
// Cached result from a call to GetFontRenderParams().
struct QueryResult {
« 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