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

Unified Diff: include/effects/SkBitmapSource.h

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 | « include/effects/SkArcToPathEffect.h ('k') | include/effects/SkBlurDrawLooper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkBitmapSource.h
diff --git a/include/effects/SkBitmapSource.h b/include/effects/SkBitmapSource.h
index e4281c9619aa11ba9ea78f50552a3eaecbd29a0c..38b13020eb88bfc17932ad73d8cecdd16598dc07 100644
--- a/include/effects/SkBitmapSource.h
+++ b/include/effects/SkBitmapSource.h
@@ -13,13 +13,11 @@
class SK_API SkBitmapSource : public SkImageFilter {
public:
- static SkBitmapSource* Create(const SkBitmap& bitmap) {
- return SkNEW_ARGS(SkBitmapSource, (bitmap));
- }
+ static SkBitmapSource* Create(const SkBitmap& bitmap) { return new SkBitmapSource(bitmap); }
static SkBitmapSource* Create(const SkBitmap& bitmap,
const SkRect& srcRect, const SkRect& dstRect,
SkFilterQuality filterQuality = kHigh_SkFilterQuality) {
- return SkNEW_ARGS(SkBitmapSource, (bitmap, srcRect, dstRect, filterQuality));
+ return new SkBitmapSource(bitmap, srcRect, dstRect, filterQuality);
}
void computeFastBounds(const SkRect& src, SkRect* dst) const override;
« no previous file with comments | « include/effects/SkArcToPathEffect.h ('k') | include/effects/SkBlurDrawLooper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698