Index: samplecode/SampleEffects.cpp |
diff --git a/samplecode/SampleEffects.cpp b/samplecode/SampleEffects.cpp |
index b58d5573ada59fca296d31def47686af52be2031..12ea4e23924dbd92a04a9615f7d6d67f0791b613 100644 |
--- a/samplecode/SampleEffects.cpp |
+++ b/samplecode/SampleEffects.cpp |
@@ -40,8 +40,8 @@ static void paint_proc2(SkPaint* paint) { |
static void paint_proc3(SkPaint* paint) { |
SkColor colors[] = { SK_ColorRED, COLOR, SK_ColorBLUE }; |
SkPoint pts[] = { { 3, 0 }, { 7, 5 } }; |
- paint->setShader(SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), |
- SkShader::kMirror_TileMode))->unref(); |
+ paint->setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), |
+ SkShader::kMirror_TileMode)); |
} |
static void paint_proc5(SkPaint* paint) { |