Index: samplecode/SampleAnimatedText.cpp |
diff --git a/samplecode/SampleAnimatedText.cpp b/samplecode/SampleAnimatedText.cpp |
index 89ea6923d72677531a4570d494ff89ee2edd38e5..6bd6d82e8c1911d0069003449fa72b2fe162d38b 100755 |
--- a/samplecode/SampleAnimatedText.cpp |
+++ b/samplecode/SampleAnimatedText.cpp |
@@ -73,7 +73,7 @@ protected: |
void onDrawContent(SkCanvas* canvas) override { |
SkPaint paint; |
- SkSafeUnref(paint.setTypeface(SkTypeface::CreateFromFile("/skimages/samplefont.ttf"))); |
+ paint.setTypeface(SkTypeface::MakeFromFile("/skimages/samplefont.ttf")); |
paint.setAntiAlias(true); |
paint.setFilterQuality(kMedium_SkFilterQuality); |