Index: src/gpu/effects/GrYUVtoRGBEffect.cpp |
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
index 913c37e39b77e84cfdb79cd6189418fe034731d3..84be8c3b4fcddf27fb2867100f0ed2f1483c05e0 100644 |
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp |
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp |
@@ -40,8 +40,8 @@ public: |
(sizes[2].fHeight != sizes[0].fHeight)) ? |
GrTextureParams::kBilerp_FilterMode : |
GrTextureParams::kNone_FilterMode; |
- return SkNEW_ARGS(YUVtoRGBEffect, (procDataManager, yTexture, uTexture, vTexture, yuvMatrix, |
- uvFilterMode, colorSpace)); |
+ return new YUVtoRGBEffect(procDataManager, yTexture, uTexture, vTexture, yuvMatrix, |
+ uvFilterMode, colorSpace); |
} |
const char* name() const override { return "YUV to RGB"; } |
@@ -123,9 +123,7 @@ private: |
this->addTextureAccess(&fVAccess); |
} |
- 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 { |