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

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: Add back the option to use blink with DirectWrite without specifying a font manager, which was appa… 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..ffe5179bf5fa4d373f0a06738a67c77dac1c2cb4 100644
--- a/third_party/WebKit/public/web/win/WebFontRendering.h
+++ b/third_party/WebKit/public/web/win/WebFontRendering.h
@@ -6,17 +6,17 @@
#define WebFontRendering_h
#include "public/platform/WebCommon.h"
-#include <SkFontHost.h>
+#include "third_party/skia/include/core/SkFontHost.h"
+class SkFontMgr;
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