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

Unified Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 132113015: IPC interface for font management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Checkpoint Created 6 years, 9 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: content/renderer/renderer_main_platform_delegate_win.cc
===================================================================
--- content/renderer/renderer_main_platform_delegate_win.cc (revision 254895)
+++ content/renderer/renderer_main_platform_delegate_win.cc (working copy)
@@ -9,15 +9,18 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/win/win_util.h"
+#include "content/common/fontmgr_proxy.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/injection_test_win.h"
#include "content/public/renderer/render_thread.h"
#include "content/renderer/render_thread_impl.h"
#include "sandbox/win/src/sandbox.h"
+#include "skia/ext/fontmgr_default_ipc.h"
#include "skia/ext/vector_platform_device_emf_win.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
#include "third_party/skia/include/ports/SkTypeface_win.h"
+
#ifdef ENABLE_VTUNE_JIT_INTERFACE
#include "v8/src/third_party/vtune/v8-vtune.h"
#endif
@@ -95,6 +98,9 @@
SkTypeface_SetEnsureLOGFONTAccessibleProc(SkiaPreCacheFont);
skia::SetSkiaEnsureTypefaceCharactersAccessible(
SkiaPreCacheFontCharacters);
+
+ SkSetFontMgr(new SkFontMgr_Indirect(SkFontMgr_New_DirectWrite(),
+ new FontMgrProxy()));
}
}

Powered by Google App Engine
This is Rietveld 408576698