implement onMakeFromData for FontConfigInterface
Bug: skia: Change-Id: Ife3192a7a41a89301da7300bf0577a10515341cd Reviewed-on: https://skia-review.googlesource.com/153021 Auto-Submit: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
2ed97e3cdd
commit
c81ebd272b
@ -227,9 +227,8 @@ protected:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData>, int ttcIndex) const override {
|
||||
SK_ABORT("Not implemented.");
|
||||
return nullptr;
|
||||
sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override {
|
||||
return this->onMakeFromStreamIndex(SkMemoryStream::Make(std::move(data)), ttcIndex);
|
||||
}
|
||||
|
||||
sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream,
|
||||
|
Loading…
Reference in New Issue
Block a user