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

Unified Diff: third_party/WebKit/public/web/win/WebFontRendering.h

Issue 1591883002: Add plumbing in blink to allow overriding the default font collection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove setDirectWriteFactory Created 4 years, 11 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: third_party/WebKit/public/web/win/WebFontRendering.h
diff --git a/third_party/WebKit/public/web/win/WebFontRendering.h b/third_party/WebKit/public/web/win/WebFontRendering.h
index 5c7c3836d7c3e7f6d282b4fc8bb9029c49cce3d1..3ae9be9be8bc4d5dab7f2bb62e52c34c403dcec8 100644
--- a/third_party/WebKit/public/web/win/WebFontRendering.h
+++ b/third_party/WebKit/public/web/win/WebFontRendering.h
@@ -7,16 +7,16 @@
#include "public/platform/WebCommon.h"
#include <SkFontHost.h>
tfarina 2016/01/21 22:45:27 shouldn't we include this by its full path now? th
Ilya Kulshin 2016/01/27 22:07:25 Done.
+#include <SkFontMgr.h>
bungeman-chromium 2016/01/21 22:25:09 Not sure what the current policy is on forward dec
tfarina 2016/01/21 22:45:27 Yes, please. Blink is already too slow to compile!
Ilya Kulshin 2016/01/27 22:07:25 Done.
class SkTypeface;
-struct IDWriteFactory;
namespace blink {
class WebFontRendering {
public:
BLINK_EXPORT static void setUseDirectWrite(bool);
- BLINK_EXPORT static void setDirectWriteFactory(IDWriteFactory*);
+ BLINK_EXPORT static void setSkiaFontManager(SkFontMgr*);
BLINK_EXPORT static void setDeviceScaleFactor(float);
BLINK_EXPORT static void setUseSubpixelPositioning(bool);
BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*);

Powered by Google App Engine
This is Rietveld 408576698