Index: gm/fontscalerdistortable.cpp |
diff --git a/gm/fontscalerdistortable.cpp b/gm/fontscalerdistortable.cpp |
index f83365bb3e59821dac80a97f0e896a2452dfdc95..b4f2ca370ce6175ec99027b682a4122e7fe04621 100644 |
--- a/gm/fontscalerdistortable.cpp |
+++ b/gm/fontscalerdistortable.cpp |
@@ -58,9 +58,8 @@ protected: |
SkFourByteTag tag = SkSetFourByteTag('w','g','h','t'); |
SkScalar styleValue = SkDoubleToScalar(0.5 + (5*j + i) * ((2.0 - 0.5) / (2 * 5))); |
SkFontMgr::FontParameters::Axis axes[] = { { tag, styleValue } }; |
- SkAutoTUnref<SkTypeface> typeface(fontMgr->createFromStream( |
- distortable->duplicate(), SkFontMgr::FontParameters().setAxes(axes, 1))); |
- paint.setTypeface(typeface); |
+ paint.setTypeface(sk_sp<SkTypeface>(fontMgr->createFromStream( |
+ distortable->duplicate(), SkFontMgr::FontParameters().setAxes(axes, 1)))); |
SkAutoCanvasRestore acr(canvas, true); |
canvas->translate(SkIntToScalar(30 + i * 100), SkIntToScalar(20)); |