Index: src/effects/gradients/SkTwoPointConicalGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
index 1cdb19e1b9bc2b3726b2facae8c005dc64fb5ef1..7e5edf25694e97194da43d708acae6489beac54c 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp |
@@ -217,7 +217,7 @@ size_t SkTwoPointConicalGradient::contextSize() const { |
SkShader::Context* SkTwoPointConicalGradient::onCreateContext(const ContextRec& rec, |
void* storage) const { |
- return SkNEW_PLACEMENT_ARGS(storage, TwoPointConicalGradientContext, (*this, rec)); |
+ return new (storage) TwoPointConicalGradientContext(*this, rec); |
} |
SkTwoPointConicalGradient::TwoPointConicalGradientContext::TwoPointConicalGradientContext( |