Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index da4467882bccc773b2a2820051ca642c6231367b..7576ee1375edc213f5dc5372d906725b3d0c7f7f 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -145,9 +145,12 @@ |
SkColor colors[2]; |
colors[0] = SK_ColorWHITE; |
colors[1] = SK_ColorBLACK; |
+ SkAutoTUnref<SkShader> shader( |
+ SkGradientShader::CreateRadial(SkPoint::Make(x, y), radius, colors, nullptr, 2, |
+ SkShader::kClamp_TileMode) |
+ ); |
SkPaint paint; |
- paint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(x, y), radius, colors, nullptr, |
- 2, SkShader::kClamp_TileMode)); |
+ paint.setShader(shader); |
canvas->drawCircle(x, y, radius, paint); |
return surface->newImageSnapshot(); |