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

Unified Diff: include/core/SkPostConfig.h

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 | « include/core/SkImageGenerator.h ('k') | include/gpu/effects/GrExtractAlphaFragmentProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPostConfig.h
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
index f4ce1028584feaee49959d1ceed0d65fe64e4186..f22893730523a16b746698b23e2002d6c147f794 100644
--- a/include/core/SkPostConfig.h
+++ b/include/core/SkPostConfig.h
@@ -100,16 +100,8 @@
///////////////////////////////////////////////////////////////////////////////
-#ifndef SkNEW
-# include <new>
-# define SkNEW(type_name) (new type_name)
-# define SkNEW_ARGS(type_name, args) (new type_name args)
-# define SkNEW_ARRAY(type_name, count) (new type_name[(count)])
-# define SkNEW_PLACEMENT(buf, type_name) (new (buf) type_name)
-# define SkNEW_PLACEMENT_ARGS(buf, type_name, args) (new (buf) type_name args)
-# define SkDELETE(obj) (delete (obj))
-# define SkDELETE_ARRAY(array) (delete[] (array))
-#endif
+// TODO(mdempsky): Move elsewhere as appropriate.
+#include <new>
#ifndef SK_CRASH
# ifdef SK_BUILD_FOR_WIN
« no previous file with comments | « include/core/SkImageGenerator.h ('k') | include/gpu/effects/GrExtractAlphaFragmentProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698