Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: src/effects/SkBlurMaskFilter.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkBlurMask.cpp ('k') | src/effects/SkColorCubeFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkBlurMaskFilter.cpp
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp
index 96789c2d357e232f7a3e3a736df7fc2418163884..852d29bc2b976c841cc338f8d07592e41a21dd5d 100644
--- a/src/effects/SkBlurMaskFilter.cpp
+++ b/src/effects/SkBlurMaskFilter.cpp
@@ -133,7 +133,7 @@ SkMaskFilter* SkBlurMaskFilter::Create(SkBlurStyle style, SkScalar sigma, uint32
if (flags > SkBlurMaskFilter::kAll_BlurFlag) {
return NULL;
}
- return SkNEW_ARGS(SkBlurMaskFilterImpl, (sigma, style, flags));
+ return new SkBlurMaskFilterImpl(sigma, style, flags);
}
///////////////////////////////////////////////////////////////////////////////
@@ -632,7 +632,7 @@ public:
if (!createdBlurProfileTexture) {
return NULL;
}
- return SkNEW_ARGS(GrRectBlurEffect, (rect, sigma, blurProfileTexture));
+ return new GrRectBlurEffect(rect, sigma, blurProfileTexture);
}
const SkRect& getRect() const { return fRect; }
@@ -802,7 +802,7 @@ void GrRectBlurEffect::onGetGLProcessorKey(const GrGLSLCaps& caps,
}
GrGLFragmentProcessor* GrRectBlurEffect::onCreateGLInstance() const {
- return SkNEW_ARGS(GrGLRectBlurEffect, (*this));
+ return new GrGLRectBlurEffect(*this);
}
bool GrRectBlurEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
@@ -972,7 +972,7 @@ GrFragmentProcessor* GrRRectBlurEffect::Create(GrTextureProvider* texProvider, f
}
texProvider->assignUniqueKeyToTexture(key, blurNinePatchTexture);
}
- return SkNEW_ARGS(GrRRectBlurEffect, (sigma, rrect, blurNinePatchTexture));
+ return new GrRRectBlurEffect(sigma, rrect, blurNinePatchTexture);
}
void GrRRectBlurEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
@@ -1102,7 +1102,7 @@ void GrRRectBlurEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, GrProcessorK
}
GrGLFragmentProcessor* GrRRectBlurEffect::onCreateGLInstance() const {
- return SkNEW_ARGS(GrGLRRectBlurEffect, (*this));
+ return new GrGLRRectBlurEffect(*this);
}
bool SkBlurMaskFilterImpl::directFilterRRectMaskGPU(GrTextureProvider* texProvider,
« no previous file with comments | « src/effects/SkBlurMask.cpp ('k') | src/effects/SkColorCubeFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698