Index: gm/drawminibitmaprect.cpp |
diff --git a/gm/drawminibitmaprect.cpp b/gm/drawminibitmaprect.cpp |
index 85071c56c4a9b91f069e86c99718b53b9414b834..f0ce1a2db6d57cfbf7181c27f0552a4c08b8533a 100644 |
--- a/gm/drawminibitmaprect.cpp |
+++ b/gm/drawminibitmaprect.cpp |
@@ -46,12 +46,12 @@ static SkImage* makebm(SkCanvas* caller, int w, int h) { |
SkRect rect = SkRect::MakeWH(wScalar, hScalar); |
SkMatrix mat = SkMatrix::I(); |
for (int i = 0; i < 4; ++i) { |
- paint.setShader(SkGradientShader::CreateRadial( |
+ paint.setShader(SkGradientShader::MakeRadial( |
pt, radius, |
colors, pos, |
SK_ARRAY_COUNT(colors), |
SkShader::kRepeat_TileMode, |
- 0, &mat))->unref(); |
+ 0, &mat)); |
canvas->drawRect(rect, paint); |
rect.inset(wScalar / 8, hScalar / 8); |
mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4); |