Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 8d5181a4f5f9dad9c6b412d2a7ed696171c2b1b1..caa2a208d2c77000257dde21c0d7d58be0f5736f 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -37,15 +37,11 @@ void SkLumaColorFilter::filterSpan(const SkPMColor src[], int count, |
} |
} |
-SkColorFilter* SkLumaColorFilter::Create() { |
- return SkNEW(SkLumaColorFilter); |
-} |
+SkColorFilter* SkLumaColorFilter::Create() { return new SkLumaColorFilter; } |
SkLumaColorFilter::SkLumaColorFilter() : INHERITED() {} |
-SkFlattenable* SkLumaColorFilter::CreateProc(SkReadBuffer&) { |
- return SkNEW(SkLumaColorFilter); |
-} |
+SkFlattenable* SkLumaColorFilter::CreateProc(SkReadBuffer&) { return new SkLumaColorFilter; } |
void SkLumaColorFilter::flatten(SkWriteBuffer&) const {} |
@@ -96,9 +92,7 @@ private: |
this->initClassID<LumaColorFilterEffect>(); |
} |
- GrGLFragmentProcessor* onCreateGLInstance() const override { |
- return SkNEW_ARGS(GLProcessor, (*this)); |
- } |
+ GrGLFragmentProcessor* onCreateGLInstance() const override { return new GLProcessor(*this); } |
virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, |
GrProcessorKeyBuilder* b) const override { |