Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index 43d6f1f7c997e87888e407537dfae942eeb972bc..d9fc39c3bc1198bd2d7ed246cf8f96ee4396fb9e 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -338,9 +338,9 @@ SkFlattenable* SkTwoPointConicalGradient::CreateProc(SkReadBuffer& buffer) { |
} |
} |
- return SkGradientShader::CreateTwoPointConical(c1, r1, c2, r2, desc.fColors, desc.fPos, |
- desc.fCount, desc.fTileMode, desc.fGradFlags, |
- desc.fLocalMatrix); |
+ return SkGradientShader::MakeTwoPointConical(c1, r1, c2, r2, desc.fColors, desc.fPos, |
+ desc.fCount, desc.fTileMode, desc.fGradFlags, |
+ desc.fLocalMatrix).release(); |
} |
void SkTwoPointConicalGradient::flatten(SkWriteBuffer& buffer) const { |