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