Index: bench/TextBench.cpp |
diff --git a/bench/TextBench.cpp b/bench/TextBench.cpp |
index 39484a2e044ca6a5a358add6a9e8a063b09b4482..4ee0fd3d25b2494f62211732cce0ebd4e694c52c 100644 |
--- a/bench/TextBench.cpp |
+++ b/bench/TextBench.cpp |
@@ -66,13 +66,7 @@ public: |
if (doColorEmoji) { |
SkASSERT(kBW == fFQ); |
- SkString filename = GetResourcePath("/Funkster.ttf"); |
- SkAutoTDelete<SkFILEStream> stream(new SkFILEStream(filename.c_str())); |
- if (stream->isValid()) { |
- fColorEmojiTypeface.reset(SkTypeface::CreateFromStream(stream.detach())); |
- } else { |
- SkDebugf("Could not find Funkster.ttf, please set --resourcePath correctly.\n"); |
- } |
+ fColorEmojiTypeface.reset(GetResourceAsTypeface("/fonts/Funkster.ttf")); |
} |
if (doPos) { |