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

Unified Diff: src/core/SkBitmapScaler.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/core/SkBitmapProcShader.cpp ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapScaler.cpp
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp
index 6e253023fd996f33738703730af4dbc6b4329c25..be7985732fd56a115ed77ddc41fdce2b8d11c9f8 100644
--- a/src/core/SkBitmapScaler.cpp
+++ b/src/core/SkBitmapScaler.cpp
@@ -25,9 +25,7 @@ public:
float destWidth, float destHeight,
const SkRect& destSubset,
const SkConvolutionProcs& convolveProcs);
- ~SkResizeFilter() {
- SkDELETE( fBitmapFilter );
- }
+ ~SkResizeFilter() { delete fBitmapFilter; }
// Returns the filled filter values.
const SkConvolutionFilter1D& xFilter() { return fXFilter; }
@@ -70,23 +68,23 @@ SkResizeFilter::SkResizeFilter(SkBitmapScaler::ResizeMethod method,
switch(method) {
case SkBitmapScaler::RESIZE_BOX:
- fBitmapFilter = SkNEW(SkBoxFilter);
+ fBitmapFilter = new SkBoxFilter;
break;
case SkBitmapScaler::RESIZE_TRIANGLE:
- fBitmapFilter = SkNEW(SkTriangleFilter);
+ fBitmapFilter = new SkTriangleFilter;
break;
case SkBitmapScaler::RESIZE_MITCHELL:
- fBitmapFilter = SkNEW_ARGS(SkMitchellFilter, (1.f/3.f, 1.f/3.f));
+ fBitmapFilter = new SkMitchellFilter(1.f / 3.f, 1.f / 3.f);
break;
case SkBitmapScaler::RESIZE_HAMMING:
- fBitmapFilter = SkNEW(SkHammingFilter);
+ fBitmapFilter = new SkHammingFilter;
break;
case SkBitmapScaler::RESIZE_LANCZOS3:
- fBitmapFilter = SkNEW(SkLanczosFilter);
+ fBitmapFilter = new SkLanczosFilter;
break;
default:
// NOTREACHED:
- fBitmapFilter = SkNEW_ARGS(SkMitchellFilter, (1.f/3.f, 1.f/3.f));
+ fBitmapFilter = new SkMitchellFilter(1.f / 3.f, 1.f / 3.f);
break;
}
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698