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

Unified Diff: ui/gfx/font_render_params.h

Issue 440773003: linux: Cache GetFontRenderParams() results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | ui/gfx/font_render_params_linux.cc » ('j') | ui/gfx/font_render_params_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_render_params.h
diff --git a/ui/gfx/font_render_params.h b/ui/gfx/font_render_params.h
index fb28700e1eef4e3b5d3966715a4ef6f82fba39ee..d7710258dd0bbb7fc3d400c61a1ece91bed678a9 100644
--- a/ui/gfx/font_render_params.h
+++ b/ui/gfx/font_render_params.h
@@ -91,6 +91,10 @@ GFX_EXPORT FontRenderParams GetFontRenderParams(
const FontRenderParamsQuery& query,
std::string* family_out);
+// Clears GetFontRenderParams()'s cache. Intended to be called by tests that are
+// changing Fontconfig's configuration.
+GFX_EXPORT void DropFontRenderParamsCacheForTest();
Daniel Erat 2014/08/04 23:44:43 i'm getting "undeclared identifier" errors that i
msw 2014/08/05 00:55:10 nit: s/Drop/Clear/
msw 2014/08/05 00:55:10 That seems very odd to me as well... would you min
Daniel Erat 2014/08/06 17:43:11 Done.
Daniel Erat 2014/08/06 17:43:11 sure, uploaded. and i can see with an #error that
msw 2014/08/06 19:31:38 Acknowledged; the comment is fine.
+
} // namespace gfx
#endif // UI_GFX_FONT_RENDER_PARAMS_H_
« no previous file with comments | « no previous file | ui/gfx/font_render_params_linux.cc » ('j') | ui/gfx/font_render_params_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698