Index: src/effects/SkArithmeticMode.cpp |
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp |
index b225e6d4c1147a4f726804ec572a6d693799ec31..fbe6358ae4ece2550e28d09f76843da41f87dbca 100644 |
--- a/src/effects/SkArithmeticMode.cpp |
+++ b/src/effects/SkArithmeticMode.cpp |
@@ -54,13 +54,13 @@ private: |
typedef SkXfermode INHERITED; |
}; |
-SkFlattenable* SkArithmeticMode_scalar::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkArithmeticMode_scalar::CreateProc(SkReadBuffer& buffer) { |
const SkScalar k1 = buffer.readScalar(); |
const SkScalar k2 = buffer.readScalar(); |
const SkScalar k3 = buffer.readScalar(); |
const SkScalar k4 = buffer.readScalar(); |
const bool enforcePMColor = buffer.readBool(); |
- return SkArithmeticMode::Make(k1, k2, k3, k4, enforcePMColor).release(); |
+ return SkArithmeticMode::Make(k1, k2, k3, k4, enforcePMColor); |
} |
static int pinToByte(int value) { |