aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFilterFuzz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleFilterFuzz.cpp')
-rw-r--r--samplecode/SampleFilterFuzz.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/samplecode/SampleFilterFuzz.cpp b/samplecode/SampleFilterFuzz.cpp
index 6a4f1f822f..88372414ca 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;