Index: tests/PaintImageFilterTest.cpp |
diff --git a/tests/PaintImageFilterTest.cpp b/tests/PaintImageFilterTest.cpp |
index f1c0c2eb9739bd563273e15da4c0c4ff19f60a5a..b71fe471196f88b9604730b582cf53a191e80542 100644 |
--- a/tests/PaintImageFilterTest.cpp |
+++ b/tests/PaintImageFilterTest.cpp |
@@ -30,9 +30,10 @@ |
SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; |
SkScalar radius = SkIntToScalar(5); |
+ SkAutoTUnref<SkShader> s(SkGradientShader::CreateRadial( |
+ center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); |
SkPaint gradientPaint; |
- gradientPaint.setShader(SkGradientShader::MakeRadial( |
- center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); |
+ gradientPaint.setShader(s); |
// Test using the image filter |
{ |
@@ -76,9 +77,10 @@ |
SkScalar pos[] = {0, SK_ScalarHalf, SK_Scalar1}; |
SkScalar radius = SkIntToScalar(5); |
+ SkAutoTUnref<SkShader> s(SkGradientShader::CreateRadial( |
+ center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); |
SkPaint gradientPaint; |
- gradientPaint.setShader(SkGradientShader::MakeRadial( |
- center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); |
+ gradientPaint.setShader(s); |
// Test using the image filter |
{ |