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

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

Issue 1742593003: Revert of Move glyph lookup to hb-ot-font and remove glyph cache in HarfBuzzFace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 78a0d47e5c1ed87c948d76997047464161c81e83..8e343ffd0d8244400ab1611568505b1e10c960ec 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
@@ -44,11 +44,12 @@
namespace blink {
class FontPlatformData;
-struct HarfBuzzFontData;
class HarfBuzzFace : public RefCounted<HarfBuzzFace> {
WTF_MAKE_NONCOPYABLE(HarfBuzzFace);
public:
+ static const hb_tag_t vertTag;
+ static const hb_tag_t vrt2Tag;
static PassRefPtr<HarfBuzzFace> create(FontPlatformData* platformData, uint64_t uniqueID)
{
@@ -59,20 +60,18 @@
// 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* getScaledFont(unsigned rangeFrom = 0, unsigned rangeTo = kMaxCodepoint);
+ hb_font_t* createFont(unsigned rangeFrom = 0, unsigned rangeTo = kMaxCodepoint) const;
hb_face_t* face() const { return m_face; }
private:
HarfBuzzFace(FontPlatformData*, uint64_t);
hb_face_t* createFace();
- void prepareHarfBuzzFontData();
FontPlatformData* m_platformData;
uint64_t m_uniqueID;
hb_face_t* m_face;
- OwnPtr<hb_font_t> m_unscaledFont;
- OwnPtr<HarfBuzzFontData> m_harfBuzzFontData;
+ WTF::HashMap<uint32_t, uint16_t>* m_glyphCacheForFaceCacheEntry;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698