Index: src/effects/SkArithmeticMode.cpp |
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp |
index 81f29bb9d87cd850e15942057e028bf5e09ca2b8..62595cf1eef38157f0840dfb171d9b6cc414b021 100644 |
--- a/src/effects/SkArithmeticMode.cpp |
+++ b/src/effects/SkArithmeticMode.cpp |
@@ -39,6 +39,14 @@ public: |
sk_sp<GrXPFactory> asXPFactory() const override; |
#endif |
+ bool isArithmetic(SkArithmeticParams* params) const override { |
+ if (params) { |
+ memcpy(params->fK, fK, 4 * sizeof(float)); |
+ params->fEnforcePMColor = fEnforcePMColor; |
+ } |
+ return true; |
+ } |
+ |
private: |
void flatten(SkWriteBuffer& buffer) const override { |
buffer.writeScalar(fK[0]); |