Index: src/svg/SkSVGDevice.cpp |
diff --git a/src/svg/SkSVGDevice.cpp b/src/svg/SkSVGDevice.cpp |
index f0805b5432b96b9f38d77713728a0599811b7795..4c679dfee7095ee75fc764dc21b12ac05ebde554 100644 |
--- a/src/svg/SkSVGDevice.cpp |
+++ b/src/svg/SkSVGDevice.cpp |
@@ -534,8 +534,8 @@ |
SkString familyName; |
SkTHashSet<SkString> familySet; |
- sk_sp<const SkTypeface> tface(paint.getTypeface() ? |
- sk_ref_sp(paint.getTypeface()) : SkTypeface::MakeDefault()); |
+ SkAutoTUnref<const SkTypeface> tface(paint.getTypeface() ? |
+ SkRef(paint.getTypeface()) : SkTypeface::RefDefault()); |
SkASSERT(tface); |
SkTypeface::Style style = tface->style(); |