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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h

Issue 1931393002: Introduce typeface cache in blink::FontCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip: others Created 4 years, 8 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/Source/platform/fonts/shaping/HarfBuzzFace.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
index 9f7c15a140927f7ae5b8e064eab60929d47d32b4..23f572c0bdc4ce4b82dd2e948665adf05ea0734a 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
@@ -45,6 +45,7 @@
namespace blink {
class FontPlatformData;
+struct FontRenderStyle;
class HarfBuzzFace : public RefCounted<HarfBuzzFace> {
WTF_MAKE_NONCOPYABLE(HarfBuzzFace);
@@ -61,7 +62,7 @@ public:
// In order to support the restricting effect of unicode-range optionally a
// range restriction can be passed in, which will restrict which glyphs we
// return in the harfBuzzGetGlyph function.
- hb_font_t* createFont(PassRefPtr<UnicodeRangeSet> = nullptr) const;
+ hb_font_t* createFont(float size, const FontRenderStyle&, PassRefPtr<UnicodeRangeSet> = nullptr) const;
hb_face_t* face() const { return m_face; }
private:

Powered by Google App Engine
This is Rietveld 408576698