Remove obsolete interface GetTable.
Test: Manually done. Change-Id: Ib9f50610454a6ddd7179c40d5f31c74916bcff84
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user