Index: src/effects/gradients/SkSweepGradient.cpp |
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp |
index f14035c52649337995efbf5c75dc6646154f3fff..ccc39d10f96fe3306e9e5f0e3e74c85e18cc69ac 100644 |
--- a/src/effects/gradients/SkSweepGradient.cpp |
+++ b/src/effects/gradients/SkSweepGradient.cpp |
@@ -29,14 +29,14 @@ SkShader::GradientType SkSweepGradient::asAGradient(GradientInfo* info) const { |
return kSweep_GradientType; |
} |
-SkFlattenable* SkSweepGradient::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkSweepGradient::CreateProc(SkReadBuffer& buffer) { |
DescriptorScope desc; |
if (!desc.unflatten(buffer)) { |
return nullptr; |
} |
const SkPoint center = buffer.readPoint(); |
return SkGradientShader::MakeSweep(center.x(), center.y(), desc.fColors, desc.fPos, |
- desc.fCount, desc.fGradFlags, desc.fLocalMatrix).release(); |
+ desc.fCount, desc.fGradFlags, desc.fLocalMatrix); |
} |
void SkSweepGradient::flatten(SkWriteBuffer& buffer) const { |