Index: gm/textblob.cpp |
diff --git a/gm/textblob.cpp b/gm/textblob.cpp |
index 525cfd292d009cb63dedf6af24afbb155886d389..02f3c878a370614f6c494eb27c5f1520e7f958ef 100644 |
--- a/gm/textblob.cpp |
+++ b/gm/textblob.cpp |
@@ -72,7 +72,7 @@ |
protected: |
void onOnceBeforeDraw() override { |
- fTypeface = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal); |
+ fTypeface.reset(sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal)); |
SkPaint p; |
p.setTypeface(fTypeface); |
size_t txtLen = strlen(fText); |
@@ -180,9 +180,9 @@ |
return builder.build(); |
} |
- SkTDArray<uint16_t> fGlyphs; |
- sk_sp<SkTypeface> fTypeface; |
- const char* fText; |
+ SkTDArray<uint16_t> fGlyphs; |
+ SkAutoTUnref<SkTypeface> fTypeface; |
+ const char* fText; |
typedef skiagm::GM INHERITED; |
}; |