Index: gm/textblobshader.cpp |
diff --git a/gm/textblobshader.cpp b/gm/textblobshader.cpp |
index 30674e1d6877521c3595ffa94fc3775bdc7ff9d3..6a8fa49289996268f4b1af669bdf99ec0ee3736d 100644 |
--- a/gm/textblobshader.cpp |
+++ b/gm/textblobshader.cpp |
@@ -68,11 +68,11 @@ protected: |
} |
SkISize sz = this->onISize(); |
- 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)); |
+ 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); |
} |
SkString onShortName() override { |
@@ -104,7 +104,7 @@ protected: |
private: |
SkTDArray<uint16_t> fGlyphs; |
SkAutoTUnref<const SkTextBlob> fBlob; |
- SkAutoTUnref<SkShader> fShader; |
+ sk_sp<SkShader> fShader; |
typedef skiagm::GM INHERITED; |
}; |