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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More codereview fixes. Jumped the gun on previous patchset. Created 5 years, 1 month 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 | chrome/chrome_utility.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 5c90b547c0d0f624634d92d24ea2e18d39c57f09..dd5d4707af13b01643ee1d3b2160aab42a332e40 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -57,7 +57,6 @@
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/dwrite_font_platform_win.h"
#include "content/public/common/main_function_params.h"
#include "ui/base/cursor/cursor_loader_win.h"
#include "ui/base/l10n/l10n_util.h"
@@ -340,35 +339,6 @@ void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() {
void ChromeBrowserMainPartsWin::PostProfileInit() {
ChromeBrowserMainParts::PostProfileInit();
-
- // DirectWrite support is mainly available Windows 7 and up.
- if (gfx::win::ShouldUseDirectWrite()) {
- base::FilePath path(
- profile()->GetPath().AppendASCII(content::kFontCacheSharedSectionName));
- // This function will create a read only section if cache file exists
- // otherwise it will spawn utility process to build cache file, which will
- // be used during next browser start/postprofileinit.
- if (!content::LoadFontCache(path)) {
- // We delay building of font cache until first startup page loads.
- // During first renderer start there are lot of things happening
- // simultaneously some of them are:
- // - Renderer is going through all font files on the system to create
- // a font collection.
- // - Renderer loading up startup URL, accessing HTML/JS File cache,
- // net activity etc.
- // - Extension initialization.
- // We delay building of cache mainly to avoid parallel font file
- // loading along with Renderer. Some systems have significant number of
- // font files which takes long time to process.
- // Related information is at http://crbug.com/436195.
- const int kBuildFontCacheDelaySec = 30;
- content::BrowserThread::PostDelayedTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(ExecuteFontCacheBuildTask, path),
- base::TimeDelta::FromSeconds(kBuildFontCacheDelaySec));
- }
- }
}
void ChromeBrowserMainPartsWin::PostBrowserStart() {
« no previous file with comments | « no previous file | chrome/chrome_utility.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698