Index: gm/poly2poly.cpp |
diff --git a/gm/poly2poly.cpp b/gm/poly2poly.cpp |
index ea77033837e6a43a9d49d32aaacd59d5f89a8c5f..4eb99361c8975c264cadcd239b9c314658590192 100644 |
--- a/gm/poly2poly.cpp |
+++ b/gm/poly2poly.cpp |
@@ -224,7 +224,7 @@ protected: |
} |
void onOnceBeforeDraw() override { |
- fEmFace.reset(GetResourceAsTypeface("/fonts/Em.ttf")); |
+ fEmFace = MakeResourceAsTypeface("/fonts/Em.ttf"); |
} |
void onDraw(SkCanvas* canvas) override { |
@@ -273,7 +273,7 @@ protected: |
private: |
typedef skiagm::GM INHERITED; |
- SkAutoTUnref<SkTypeface> fEmFace; |
+ sk_sp<SkTypeface> fEmFace; |
}; |
////////////////////////////////////////////////////////////////////////////// |