Index: bench/TextBench.cpp |
diff --git a/bench/TextBench.cpp b/bench/TextBench.cpp |
index 04f824c700c055106de209b2f8e6e630edd1a724..a048ffd4a12ff2265f3a1e75d9ab59fd88dfe996 100644 |
--- a/bench/TextBench.cpp |
+++ b/bench/TextBench.cpp |
@@ -47,7 +47,7 @@ class TextBench : public Benchmark { |
FontQuality fFQ; |
bool fDoPos; |
bool fDoColorEmoji; |
- SkAutoTUnref<SkTypeface> fColorEmojiTypeface; |
+ sk_sp<SkTypeface> fColorEmojiTypeface; |
SkPoint* fPos; |
public: |
TextBench(const char text[], int ps, |
@@ -71,7 +71,7 @@ protected: |
void onDelayedSetup() override { |
if (fDoColorEmoji) { |
SkASSERT(kBW == fFQ); |
- fColorEmojiTypeface.reset(GetResourceAsTypeface("/fonts/Funkster.ttf")); |
+ fColorEmojiTypeface = MakeResourceAsTypeface("/fonts/Funkster.ttf"); |
} |
if (fDoPos) { |