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

Unified Diff: content/browser/dwrite_font_cache_win.cc

Issue 729103002: Revert of DirectWrite Font Cache browser side hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/utility/font_cache_handler_win.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dwrite_font_cache_win.cc
diff --git a/content/browser/dwrite_font_cache_win.cc b/content/browser/dwrite_font_cache_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b5e885eb9ed6e2659c76f5852c29cc4c12c9ad82
--- /dev/null
+++ b/content/browser/dwrite_font_cache_win.cc
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/common/dwrite_font_cache_win.h"
+
+#include "base/files/file_path.h"
+#include "content/common/dwrite_font_platform_win.h"
+#include "content/public/browser/browser_thread.h"
+
+namespace content {
+
+bool InitializeFontCache(const base::FilePath& path) {
+ if (!LoadFontCache(path)) {
+ content::BrowserThread::PostTask(
+ content::BrowserThread::FILE, FROM_HERE, base::Bind(
+ base::IgnoreResult(&content::BuildAndLoadFontCache),
+ path));
+ }
+ return true;
+}
+
+} // namespace content
« no previous file with comments | « chrome/utility/font_cache_handler_win.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698