Loading libs/hwui/hwui/MinikinSkia.cpp +0 −17 Original line number Diff line number Diff line Loading @@ -65,23 +65,6 @@ void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, bounds->mBottom = skBounds.fBottom; } const void* MinikinFontSkia::GetTable(uint32_t tag, size_t* size, minikin::MinikinDestroyFunc* destroy) { // we don't have a buffer to the font data, copy to own buffer const size_t tableSize = mTypeface->getTableSize(tag); *size = tableSize; if (tableSize == 0) { return nullptr; } void* buf = malloc(tableSize); if (buf == nullptr) { return nullptr; } mTypeface->getTableData(tag, 0, tableSize, buf); *destroy = free; return buf; } SkTypeface *MinikinFontSkia::GetSkTypeface() const { return mTypeface.get(); } Loading libs/hwui/hwui/MinikinSkia.h +0 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public: void GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, const minikin::MinikinPaint &paint) const; const void* GetTable(uint32_t tag, size_t* size, minikin::MinikinDestroyFunc* destroy); SkTypeface* GetSkTypeface() const; sk_sp<SkTypeface> RefSkTypeface() const; Loading Loading
libs/hwui/hwui/MinikinSkia.cpp +0 −17 Original line number Diff line number Diff line Loading @@ -65,23 +65,6 @@ void MinikinFontSkia::GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, bounds->mBottom = skBounds.fBottom; } const void* MinikinFontSkia::GetTable(uint32_t tag, size_t* size, minikin::MinikinDestroyFunc* destroy) { // we don't have a buffer to the font data, copy to own buffer const size_t tableSize = mTypeface->getTableSize(tag); *size = tableSize; if (tableSize == 0) { return nullptr; } void* buf = malloc(tableSize); if (buf == nullptr) { return nullptr; } mTypeface->getTableData(tag, 0, tableSize, buf); *destroy = free; return buf; } SkTypeface *MinikinFontSkia::GetSkTypeface() const { return mTypeface.get(); } Loading
libs/hwui/hwui/MinikinSkia.h +0 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,6 @@ public: void GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id, const minikin::MinikinPaint &paint) const; const void* GetTable(uint32_t tag, size_t* size, minikin::MinikinDestroyFunc* destroy); SkTypeface* GetSkTypeface() const; sk_sp<SkTypeface> RefSkTypeface() const; Loading