Index: gm/convexpolyclip.cpp |
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp |
index e6f967c35ec30cdfceff5840553c7a64975ad2ca..ff83a2622586029f2dcbcae1d8db6e06a75e4535 100644 |
--- a/gm/convexpolyclip.cpp |
+++ b/gm/convexpolyclip.cpp |
@@ -44,12 +44,12 @@ static SkBitmap make_bmp(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.preTranslate(6 * wScalar, 6 * hScalar); |