Index: src/core/SkTypeface.cpp |
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp |
index 6024c81a17da9d2c2dbcbafb3b8897b8d1ebaaa6..dc5306331ce55de728f086b5da9401289023364d 100644 |
--- a/src/core/SkTypeface.cpp |
+++ b/src/core/SkTypeface.cpp |
@@ -40,7 +40,8 @@ protected: |
SkEmptyTypeface() : SkTypeface(SkFontStyle(), 0, true) { } |
SkStreamAsset* onOpenStream(int* ttcIndex) const override { return nullptr; } |
- SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override { |
+ SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&, |
+ const SkDescriptor*) const override { |
return nullptr; |
} |
void onFilterRec(SkScalerContextRec*) const override { } |
@@ -348,7 +349,8 @@ bool SkTypeface::onComputeBounds(SkRect* bounds) const { |
desc->init(); |
desc->addEntry(kRec_SkDescriptorTag, sizeof(rec), &rec); |
- SkAutoTDelete<SkScalerContext> ctx(this->createScalerContext(desc, true)); |
+ SkScalerContextEffects noeffects; |
+ SkAutoTDelete<SkScalerContext> ctx(this->createScalerContext(noeffects, desc, true)); |
if (ctx.get()) { |
SkPaint::FontMetrics fm; |
ctx->getFontMetrics(&fm); |