Index: gm/imagetoyuvplanes.cpp |
diff --git a/gm/imagetoyuvplanes.cpp b/gm/imagetoyuvplanes.cpp |
index 87bff8ee64948c241d3737aa927db62c0224d41e..09b3dbb98b92240a43989a91f9eabcab40b4a78a 100644 |
--- a/gm/imagetoyuvplanes.cpp |
+++ b/gm/imagetoyuvplanes.cpp |
@@ -28,9 +28,9 @@ |
static const SkColor kColors[] = |
{ SK_ColorBLUE, SK_ColorYELLOW, SK_ColorGREEN, SK_ColorWHITE }; |
SkScalar r = (width + height) / 4.f; |
- paint.setShader(SkGradientShader::MakeRadial(SkPoint::Make(0,0), r, kColors, |
- nullptr, SK_ARRAY_COUNT(kColors), |
- SkShader::kMirror_TileMode)); |
+ paint.setShader(SkGradientShader::CreateRadial(SkPoint::Make(0,0), r, kColors, |
+ nullptr, SK_ARRAY_COUNT(kColors), |
+ SkShader::kMirror_TileMode))->unref(); |
surface->getCanvas()->drawPaint(paint); |
return surface->newImageSnapshot(); |