Index: src/effects/SkAvoidXfermode.cpp |
diff --git a/src/effects/SkAvoidXfermode.cpp b/src/effects/SkAvoidXfermode.cpp |
index 4b7e63667a236aa1d009d654fe07ddf180c2ce15..58051288eef6ddb9ac0849cbe791a87c468a2a80 100644 |
--- a/src/effects/SkAvoidXfermode.cpp |
+++ b/src/effects/SkAvoidXfermode.cpp |
@@ -21,11 +21,11 @@ SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { |
fMode = mode; |
} |
-SkFlattenable* SkAvoidXfermode::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkAvoidXfermode::CreateProc(SkReadBuffer& buffer) { |
const SkColor color = buffer.readColor(); |
const unsigned tolerance = buffer.readUInt(); |
const unsigned mode = buffer.readUInt(); |
- return Make(color, tolerance, (Mode)mode).release(); |
+ return Make(color, tolerance, (Mode)mode); |
} |
void SkAvoidXfermode::flatten(SkWriteBuffer& buffer) const { |