Index: src/effects/gradients/SkRadialGradient.cpp |
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp |
index 1b995cb44fe601f7c4e2e70334694226299205d8..7e249496ce5da35d8b67f9b8c4dcc0bd0a9605aa 100644 |
--- a/src/effects/gradients/SkRadialGradient.cpp |
+++ b/src/effects/gradients/SkRadialGradient.cpp |
@@ -160,7 +160,7 @@ size_t SkRadialGradient::contextSize() const { |
} |
SkShader::Context* SkRadialGradient::onCreateContext(const ContextRec& rec, void* storage) const { |
- return SkNEW_PLACEMENT_ARGS(storage, RadialGradientContext, (*this, rec)); |
+ return new (storage) RadialGradientContext(*this, rec); |
} |
SkRadialGradient::RadialGradientContext::RadialGradientContext( |
@@ -444,7 +444,7 @@ public: |
const SkRadialGradient& shader, |
const SkMatrix& matrix, |
SkShader::TileMode tm) { |
- return SkNEW_ARGS(GrRadialGradient, (ctx, procDataManager, shader, matrix, tm)); |
+ return new GrRadialGradient(ctx, procDataManager, shader, matrix, tm); |
} |
virtual ~GrRadialGradient() { } |
@@ -462,7 +462,7 @@ private: |
} |
GrGLFragmentProcessor* onCreateGLInstance() const override { |
- return SkNEW_ARGS(GrGLRadialGradient, (*this)); |
+ return new GrGLRadialGradient(*this); |
} |
virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |