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

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 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/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index 380213abcb8e9a0d67df5d2f27d421c1a7a860f8..ced55938d68462a1caaf51fc38e37afd650568d9 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -163,8 +163,11 @@ DWORD WINAPI GetFontDataPatch(HDC hdc,
LOGFONT logfont;
if (GetObject(font, sizeof(LOGFONT), &logfont)) {
std::vector<char> font_data;
- if (RenderThread::current()->Send(new ViewHostMsg_PreCacheFont(logfont)))
+ if (RenderThread::current()->Send(
+ new ViewHostMsg_PreCacheFont(logfont, GetCurrentProcessId())))
rv = GetFontData(hdc, table, offset, buffer, length);
+ RenderThread::current()->Send((
+ new ViewHostMsg_ReleaseCachedFont(GetCurrentProcessId())));
}
}
return rv;

Powered by Google App Engine
This is Rietveld 408576698