Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index d9fc39c3bc1198bd2d7ed246cf8f96ee4396fb9e..f33dcc5a75f9d4ad73571764cd3d4a1d1d710f1c 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -305,7 +305,7 @@ SkShader::GradientType SkTwoPointConicalGradient::asAGradient( |
return kConical_GradientType; |
} |
-SkFlattenable* SkTwoPointConicalGradient::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkTwoPointConicalGradient::CreateProc(SkReadBuffer& buffer) { |
DescriptorScope desc; |
if (!desc.unflatten(buffer)) { |
return nullptr; |
@@ -340,7 +340,7 @@ SkFlattenable* SkTwoPointConicalGradient::CreateProc(SkReadBuffer& buffer) { |
return SkGradientShader::MakeTwoPointConical(c1, r1, c2, r2, desc.fColors, desc.fPos, |
desc.fCount, desc.fTileMode, desc.fGradFlags, |
- desc.fLocalMatrix).release(); |
+ desc.fLocalMatrix); |
} |
void SkTwoPointConicalGradient::flatten(SkWriteBuffer& buffer) const { |