Index: gm/textblobshader.cpp |
diff --git a/gm/textblobshader.cpp b/gm/textblobshader.cpp |
index 6a8fa49289996268f4b1af669bdf99ec0ee3736d..30674e1d6877521c3595ffa94fc3775bdc7ff9d3 100644 |
--- a/gm/textblobshader.cpp |
+++ b/gm/textblobshader.cpp |
@@ -68,11 +68,11 @@ |
} |
SkISize sz = this->onISize(); |
- fShader = SkGradientShader::MakeRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), |
- SkIntToScalar(sz.height() / 2)), |
- sz.width() * .66f, colors, pos, |
- SK_ARRAY_COUNT(colors), |
- SkShader::kRepeat_TileMode); |
+ fShader.reset(SkGradientShader::CreateRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), |
+ SkIntToScalar(sz.height() / 2)), |
+ sz.width() * .66f, colors, pos, |
+ SK_ARRAY_COUNT(colors), |
+ SkShader::kRepeat_TileMode)); |
} |
SkString onShortName() override { |
@@ -104,7 +104,7 @@ |
private: |
SkTDArray<uint16_t> fGlyphs; |
SkAutoTUnref<const SkTextBlob> fBlob; |
- sk_sp<SkShader> fShader; |
+ SkAutoTUnref<SkShader> fShader; |
typedef skiagm::GM INHERITED; |
}; |