Index: gm/imagefromyuvtextures.cpp |
diff --git a/gm/imagefromyuvtextures.cpp b/gm/imagefromyuvtextures.cpp |
index c53df295cd0c6ba843347de382fbea49758524b2..6280ae740b98442c8100098e0da1772d2625f00d 100644 |
--- a/gm/imagefromyuvtextures.cpp |
+++ b/gm/imagefromyuvtextures.cpp |
@@ -40,9 +40,9 @@ protected: |
SkPaint paint; |
static const SkColor kColors[] = |
{ SK_ColorBLUE, SK_ColorYELLOW, SK_ColorGREEN, SK_ColorWHITE }; |
- paint.setShader(SkGradientShader::CreateRadial(SkPoint::Make(0,0), kBmpSize / 2.f, kColors, |
- nullptr, SK_ARRAY_COUNT(kColors), |
- SkShader::kMirror_TileMode))->unref(); |
+ paint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(0,0), kBmpSize / 2.f, kColors, |
+ nullptr, SK_ARRAY_COUNT(kColors), |
+ SkShader::kMirror_TileMode)); |
SkBitmap rgbBmp; |
rgbBmp.allocN32Pixels(kBmpSize, kBmpSize, true); |
SkCanvas canvas(rgbBmp); |