Index: samplecode/SampleFilterFuzz.cpp |
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp |
index 6a4f1f822f7ebe1751edfcf196c383625d1506a5..88372414ca741380ba4f3c88c659fbb80cfd2667 100644 |
--- a/samplecode/SampleFilterFuzz.cpp |
+++ b/samplecode/SampleFilterFuzz.cpp |
@@ -515,9 +515,8 @@ static SkPaint make_paint() { |
if (false) { |
// our validating buffer does not support typefaces yet, so skip this for now |
- SkAutoTUnref<SkTypeface> typeface( |
- SkTypeface::CreateFromName(make_font_name().c_str(), make_typeface_style())); |
- paint.setTypeface(typeface); |
+ paint.setTypeface(SkTypeface::MakeFromName(make_font_name().c_str(), |
+ make_typeface_style())); |
} |
SkLayerRasterizer::Builder rasterizerBuilder; |