Windows: Add DirectWrite font cache support (issue #1652)

This commit is contained in:
Marshall Greenblatt
2015-06-11 18:08:33 -04:00
parent de05577c86
commit ee90dc0915
11 changed files with 93 additions and 34 deletions

View File

@@ -99,7 +99,10 @@ void CefBrowserMainParts::PostMainMessageLoopStart() {
}
int CefBrowserMainParts::PreCreateThreads() {
#if defined(OS_WIN)
PlatformInitialize();
#endif
net::NetModule::SetResourceProvider(&NetResourceProvider);
// Initialize the GpuDataManager before IO access restrictions are applied and
@@ -140,6 +143,10 @@ void CefBrowserMainParts::PreMainMessageLoopRun() {
LOG(WARNING) << "Invalid http debugger port number " << port;
}
}
#if defined(OS_WIN)
PlatformPreMainMessageLoopRun();
#endif
}
void CefBrowserMainParts::PostMainMessageLoopRun() {
@@ -166,6 +173,4 @@ void CefBrowserMainParts::PostDestroyThreads() {
// No CefURLRequestContext instances should exist at this point.
DCHECK_EQ(0, CefURLRequestContext::DebugObjCt);
#endif
PlatformCleanup();
}