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