Index: content/child/font_warmup_win_unittest.cc |
diff --git a/content/child/font_warmup_win_unittest.cc b/content/child/font_warmup_win_unittest.cc |
index 91c0c84393c406ccd54bf73157b908c027ecd715..a5348ed4e4008f28e70e0e8311f367700b633a2f 100644 |
--- a/content/child/font_warmup_win_unittest.cc |
+++ b/content/child/font_warmup_win_unittest.cc |
@@ -37,7 +37,12 @@ class TestSkTypeface : public SkTypeface { |
data_(data, data + dataLength) {} |
protected: |
+#ifdef SK_SUPPORT_NEW_ONCREATESCALERCONTEXT |
+ SkScalerContext* onCreateScalerContext(const SkScalerContextEffects&, |
+ const SkDescriptor*) const override { |
+#else |
SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override { |
+#endif |
ADD_FAILURE(); |
return nullptr; |
} |