aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/gradients/SkSweepGradient.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-26 13:07:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-26 13:07:49 -0700
commit385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch)
tree53d982ff238828331e86acd44071a44162a8688c /src/effects/gradients/SkSweepGradient.cpp
parent5015176adf046ef906a2313b6e6b64b72cc84898 (diff)
Style Change: SkNEW->new; SkDELETE->delete
Diffstat (limited to 'src/effects/gradients/SkSweepGradient.cpp')
-rw-r--r--src/effects/gradients/SkSweepGradient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp
index 22bf68eaea..9e44b70298 100644
--- a/src/effects/gradients/SkSweepGradient.cpp
+++ b/src/effects/gradients/SkSweepGradient.cpp
@@ -50,7 +50,7 @@ size_t SkSweepGradient::contextSize() const {
}
SkShader::Context* SkSweepGradient::onCreateContext(const ContextRec& rec, void* storage) const {
- return SkNEW_PLACEMENT_ARGS(storage, SweepGradientContext, (*this, rec));
+ return new (storage) SweepGradientContext(*this, rec);
}
SkSweepGradient::SweepGradientContext::SweepGradientContext(
@@ -193,7 +193,7 @@ class GrSweepGradient : public GrGradientEffect {
public:
static GrFragmentProcessor* Create(GrContext* ctx, GrProcessorDataManager* procDataManager,
const SkSweepGradient& shader, const SkMatrix& m) {
- return SkNEW_ARGS(GrSweepGradient, (ctx, procDataManager, shader, m));
+ return new GrSweepGradient(ctx, procDataManager, shader, m);
}
virtual ~GrSweepGradient() { }
@@ -209,7 +209,7 @@ private:
}
GrGLFragmentProcessor* onCreateGLInstance() const override {
- return SkNEW_ARGS(GrGLSweepGradient, (*this));
+ return new GrGLSweepGradient(*this);
}
virtual void onGetGLProcessorKey(const GrGLSLCaps& caps,