Index: samplecode/SampleXfer.cpp |
diff --git a/samplecode/SampleXfer.cpp b/samplecode/SampleXfer.cpp |
index 221ba5815ea36b4815213c837ce029566abad802..58546e19cd28d9f49df68fd981e9ba83d6c99929 100644 |
--- a/samplecode/SampleXfer.cpp |
+++ b/samplecode/SampleXfer.cpp |
@@ -127,10 +127,9 @@ class CircDrawable : public ModeDrawable { |
public: |
CircDrawable(SkScalar size, SkColor c) { |
const SkColor colors[] = { 0, c }; |
- SkAutoTUnref<SkShader> shader(SkGradientShader::CreateRadial(SkPoint::Make(size/2, size/2), size/2, |
+ fPaint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(size/2, size/2), size/2, |
colors, nullptr, 2, |
SkShader::kClamp_TileMode)); |
- fPaint.setShader(shader); |
fBounds = SkRect::MakeWH(size, size); |
} |