Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index f772d8c57e13b28faebe8ed7f4238001a2f7f271..395307cf043c714729fa25b286acf475c896b939 100644 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -257,7 +257,8 @@ public: |
protected: |
SkStreamAsset* onOpenStream(int* ttcIndex) const override; |
- SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; |
+ SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&, |
+ const SkDescriptor*) const override; |
void onFilterRec(SkScalerContextRec*) const override; |
SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
PerGlyphInfo, const uint32_t*, uint32_t) const override; |
@@ -533,7 +534,7 @@ const void* HDCOffscreen::draw(const SkGlyph& glyph, bool isBW, |
class SkScalerContext_GDI : public SkScalerContext { |
public: |
- SkScalerContext_GDI(SkTypeface*, const SkDescriptor* desc); |
+ SkScalerContext_GDI(SkTypeface*, const SkScalerContextEffects&, const SkDescriptor* desc); |
virtual ~SkScalerContext_GDI(); |
// Returns true if the constructor was able to complete all of its |
@@ -604,8 +605,9 @@ static BYTE compute_quality(const SkScalerContext::Rec& rec) { |
} |
SkScalerContext_GDI::SkScalerContext_GDI(SkTypeface* rawTypeface, |
- const SkDescriptor* desc) |
- : SkScalerContext(rawTypeface, desc) |
+ const SkScalerContextEffects& effects, |
+ const SkDescriptor* desc) |
+ : SkScalerContext(rawTypeface, effects, desc) |
, fDDC(0) |
, fSavefont(0) |
, fFont(0) |
@@ -2285,8 +2287,10 @@ size_t LogFontTypeface::onGetTableData(SkFontTableTag tag, size_t offset, |
return bufferSize == GDI_ERROR ? 0 : bufferSize; |
} |
-SkScalerContext* LogFontTypeface::onCreateScalerContext(const SkDescriptor* desc) const { |
- SkScalerContext_GDI* ctx = new SkScalerContext_GDI(const_cast<LogFontTypeface*>(this), desc); |
+SkScalerContext* LogFontTypeface::onCreateScalerContext(const SkScalerContextEffects& effects, |
+ const SkDescriptor* desc) const { |
+ SkScalerContext_GDI* ctx = new SkScalerContext_GDI(const_cast<LogFontTypeface*>(this), |
+ effects, desc); |
if (!ctx->isValid()) { |
delete ctx; |
ctx = nullptr; |