Index: gm/textblobmixedsizes.cpp |
diff --git a/gm/textblobmixedsizes.cpp b/gm/textblobmixedsizes.cpp |
index 9e57c2fe975245d56b7563d02757da0079ed45bd..8f5dc85e48226187401f2fb82dd4e6a5312f82a4 100644 |
--- a/gm/textblobmixedsizes.cpp |
+++ b/gm/textblobmixedsizes.cpp |
@@ -27,7 +27,6 @@ public: |
protected: |
void onOnceBeforeDraw() override { |
- SkAutoTUnref<SkTypeface> typeface(GetResourceAsTypeface("/fonts/HangingS.ttf")); |
SkTextBlobBuilder builder; |
// make textblob. To stress distance fields, we choose sizes appropriately |
@@ -35,7 +34,7 @@ protected: |
paint.setAntiAlias(true); |
paint.setSubpixelText(true); |
paint.setLCDRenderText(true); |
- paint.setTypeface(typeface); |
+ paint.setTypeface(MakeResourceAsTypeface("/fonts/HangingS.ttf")); |
const char* text = "Skia"; |