Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index 01d6dc53c2a4ab4cecaafd2c51ca5d34753c68ce..1cfe8647511088cea117a28b9438691e6abd4eb3 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -1092,12 +1092,12 @@ bool SkXfermode::isOpaque(SkXfermode::SrcColorOpacity opacityType) const { |
/////////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////////// |
-SkFlattenable* SkProcCoeffXfermode::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkProcCoeffXfermode::CreateProc(SkReadBuffer& buffer) { |
uint32_t mode32 = buffer.read32(); |
if (!buffer.validate(mode32 < SK_ARRAY_COUNT(gProcCoeffs))) { |
return nullptr; |
} |
- return SkXfermode::Make((SkXfermode::Mode)mode32).release(); |
+ return SkXfermode::Make((SkXfermode::Mode)mode32); |
} |
void SkProcCoeffXfermode::flatten(SkWriteBuffer& buffer) const { |