Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index 5845bc9ded6fd6c993444db1e88685e1fd7b8b75..46c9b26298059766063202c18abf66e4b649318f 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -389,7 +389,7 @@ SkColorFilter* SkColorMatrixFilter::newComposed(const SkColorFilter* innerFilter |
class ColorMatrixEffect : public GrFragmentProcessor { |
public: |
static GrFragmentProcessor* Create(const SkColorMatrix& matrix) { |
- return SkNEW_ARGS(ColorMatrixEffect, (matrix)); |
+ return new ColorMatrixEffect(matrix); |
} |
const char* name() const override { return "Color Matrix"; } |
@@ -462,9 +462,7 @@ private: |
this->initClassID<ColorMatrixEffect>(); |
} |
- 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 { |