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

Unified Diff: src/effects/SkColorFilters.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/SkColorFilterImageFilter.cpp ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkColorFilters.cpp
diff --git a/src/effects/SkColorFilters.cpp b/src/effects/SkColorFilters.cpp
index af3e38b02ae301610ca390aa6b52d0a042a548f9..5560183153e7c4d2aed412646e0da091b37882df 100644
--- a/src/effects/SkColorFilters.cpp
+++ b/src/effects/SkColorFilters.cpp
@@ -134,7 +134,7 @@ public:
// SkDebugf("Failing to create color filter for mode %d\n", mode);
return NULL;
}
- return SkNEW_ARGS(ModeColorFilterEffect, (c, mode));
+ return new ModeColorFilterEffect(c, mode);
}
bool willUseFilterColor() const {
@@ -212,9 +212,7 @@ private:
this->initClassID<ModeColorFilterEffect>();
}
- 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 {
@@ -438,11 +436,11 @@ SkColorFilter* SkColorFilter::CreateModeFilter(SkColor color, SkXfermode::Mode m
switch (mode) {
case SkXfermode::kSrc_Mode:
- return SkNEW_ARGS(Src_SkModeColorFilter, (color));
+ return new Src_SkModeColorFilter(color);
case SkXfermode::kSrcOver_Mode:
- return SkNEW_ARGS(SrcOver_SkModeColorFilter, (color));
+ return new SrcOver_SkModeColorFilter(color);
default:
- return SkNEW_ARGS(SkModeColorFilter, (color, mode));
+ return new SkModeColorFilter(color, mode);
}
}
« no previous file with comments | « src/effects/SkColorFilterImageFilter.cpp ('k') | src/effects/SkColorMatrixFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698