Index: gm/matrixconvolution.cpp |
diff --git a/gm/matrixconvolution.cpp b/gm/matrixconvolution.cpp |
index 3b159f455bd084df5255f3b4dcff62ad01d46030..b02f743f2933321cc38f27bb7d5dddf68eaa693c 100644 |
--- a/gm/matrixconvolution.cpp |
+++ b/gm/matrixconvolution.cpp |
@@ -37,8 +37,8 @@ protected: |
SkPoint::Make(0, SkIntToScalar(80)) }; |
SkColor colors[2] = { 0xFFFFFFFF, 0x40404040 }; |
SkScalar pos[2] = { 0, SkIntToScalar(80) }; |
- paint.setShader(SkGradientShader::CreateLinear( |
- pts, colors, pos, 2, SkShader::kClamp_TileMode))->unref(); |
+ paint.setShader(SkGradientShader::MakeLinear( |
+ pts, colors, pos, 2, SkShader::kClamp_TileMode)); |
const char* str = "e"; |
canvas.drawText(str, strlen(str), SkIntToScalar(-10), SkIntToScalar(80), paint); |
} |