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

Unified Diff: content/common/dwrite_font_platform_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 | « content/common/dwrite_font_platform_win.h ('k') | content/common/dwrite_font_platform_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/dwrite_font_platform_win.cc
diff --git a/content/common/dwrite_font_platform_win.cc b/content/common/dwrite_font_platform_win.cc
index f2a9c2144651f2dbf471dbd05e28410eb3f855fc..da30d93d8fb91706860eda970988d9b67bacd24b 100644
--- a/content/common/dwrite_font_platform_win.cc
+++ b/content/common/dwrite_font_platform_win.cc
@@ -2,7 +2,7 @@
// 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_platform_win.h"
+#include "content/common/dwrite_font_platform_win.h"
#include <dwrite.h>
#include <map>
@@ -33,6 +33,7 @@
#include "base/win/registry.h"
#include "base/win/scoped_comptr.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/dwrite_font_cache_win.h"
namespace {
@@ -1172,8 +1173,12 @@
return true;
}
-bool BuildFontCache(const base::FilePath& file) {
- return BuildFontCacheInternal(file.value().c_str());
+// Assumption for this function is that it will get called through a posted task
+// on FILE thread.
+bool BuildAndLoadFontCache(const base::FilePath& file) {
+ if (BuildFontCacheInternal(file.value().c_str()))
+ return LoadFontCache(file);
+ return false;
}
} // namespace content
« no previous file with comments | « content/common/dwrite_font_platform_win.h ('k') | content/common/dwrite_font_platform_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698