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

Unified Diff: src/effects/SkImageSource.cpp

Issue 1360653004: Remove SkNEW and SkDELETE macros (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Restore comment about new/delete Created 5 years, 3 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/codec/SkCodec_libgif.cpp ('k') | src/gpu/batches/GrDrawPathBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkImageSource.cpp
diff --git a/src/effects/SkImageSource.cpp b/src/effects/SkImageSource.cpp
index 8f8c72b75c3a18f8b0f74926546b3eef98a0c35c..2686fcb6c6ca76eedc41c941fda4ed840ee6d0e3 100644
--- a/src/effects/SkImageSource.cpp
+++ b/src/effects/SkImageSource.cpp
@@ -15,14 +15,14 @@
#include "SkString.h"
SkImageFilter* SkImageSource::Create(const SkImage* image) {
- return image ? SkNEW_ARGS(SkImageSource, (image)) : nullptr;
+ return image ? new SkImageSource(image) : nullptr;
}
SkImageFilter* SkImageSource::Create(const SkImage* image,
const SkRect& srcRect,
const SkRect& dstRect,
SkFilterQuality filterQuality) {
- return image ? SkNEW_ARGS(SkImageSource, (image, srcRect, dstRect, filterQuality)) : nullptr;
+ return image ? new SkImageSource(image, srcRect, dstRect, filterQuality) : nullptr;
}
SkImageSource::SkImageSource(const SkImage* image)
« no previous file with comments | « src/codec/SkCodec_libgif.cpp ('k') | src/gpu/batches/GrDrawPathBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698