Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index e55376d5218a95679a562bd301a3d905d75a25bd..f6d146169ace331383ddce4636228295e8129554 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -43,7 +43,7 @@ SkImageFilter* SkAlphaThresholdFilter::Create(const SkRegion& region, |
SkScalar innerThreshold, |
SkScalar outerThreshold, |
SkImageFilter* input) { |
- return SkNEW_ARGS(SkAlphaThresholdFilterImpl, (region, innerThreshold, outerThreshold, input)); |
+ return new SkAlphaThresholdFilterImpl(region, innerThreshold, outerThreshold, input); |
} |
#if SK_SUPPORT_GPU |
@@ -67,11 +67,8 @@ public: |
GrTexture* maskTexture, |
float innerThreshold, |
float outerThreshold) { |
- return SkNEW_ARGS(AlphaThresholdEffect, (procDataManager, |
- texture, |
- maskTexture, |
- innerThreshold, |
- outerThreshold)); |
+ return new AlphaThresholdEffect(procDataManager, texture, maskTexture, innerThreshold, |
+ outerThreshold); |
} |
virtual ~AlphaThresholdEffect() {}; |
@@ -215,7 +212,7 @@ void AlphaThresholdEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, |
} |
GrGLFragmentProcessor* AlphaThresholdEffect::onCreateGLInstance() const { |
- return SkNEW_ARGS(GrGLAlphaThresholdEffect, (*this)); |
+ return new GrGLAlphaThresholdEffect(*this); |
} |
bool AlphaThresholdEffect::onIsEqual(const GrFragmentProcessor& sBase) const { |