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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update per code review Created 9 years, 3 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
Index: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 0c4e88c03a49d5935afb7bbc34827030c762ffde..e82ecf2ab416c3fb8e43c36b1d85d3a0d309819a 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -145,6 +145,8 @@ bool ServiceUtilityProcessHost::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP_EX(ServiceUtilityProcessHost, message, msg_is_ok)
#if defined(OS_WIN) // This hack is Windows-specific.
IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFont, OnPreCacheFont)
+ IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ReleaseCachedFont,
+ OnReleaseCachedFont)
#endif
IPC_MESSAGE_HANDLER(
ChromeUtilityHostMsg_RenderPDFPagesToMetafile_Succeeded,
@@ -165,8 +167,12 @@ bool ServiceUtilityProcessHost::MessageForClient(const IPC::Message& message) {
}
#if defined(OS_WIN) // This hack is Windows-specific.
-void ServiceUtilityProcessHost::OnPreCacheFont(const LOGFONT& font) {
- PreCacheFont(font);
+void ServiceUtilityProcessHost::OnPreCacheFont(const LOGFONT& font, int pid) {
+ PreCacheFont(font, pid);
+}
+
+void ServiceUtilityProcessHost::OnReleaseCachedFont(int pid) {
+ ReleaseCachedFont(pid);
}
#endif // OS_WIN

Powered by Google App Engine
This is Rietveld 408576698