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

Issue 1360653004: Remove SkNEW and SkDELETE macros (Closed)

Created:
5 years, 3 months ago by mdempsky
Modified:
5 years, 3 months ago
Reviewers:
mtklein, mtklein_C
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove SkNEW and SkDELETE macros This CL removes the uses of SkNEW that have resprouted since commit 385fe4d, and removes the macros entirely now that Android and Chromium have been cleaned up to no longer depend on them. A bunch of files implicitly depend on #include <new> from SkPostConfig.h still though, so keep that for now. To be fixed in a followup CL. [mtklein mucking around] Only public API removed. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/106b12427e642d067dd5b48664eb693653853583

Patch Set 1 #

Patch Set 2 : Keep #include <new> for now #

Total comments: 4

Patch Set 3 : Restore comment about new/delete #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -23 lines) Patch
M include/core/SkImageGenerator.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M include/core/SkPostConfig.h View 1 1 chunk +2 lines, -10 lines 0 comments Download
M include/gpu/effects/GrExtractAlphaFragmentProcessor.h View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkBmpCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec_libgif.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkImageSource.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/batches/GrDrawPathBatch.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/effects/GrExtractAlphaFragmentProcessor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
mdempsky
5 years, 3 months ago (2015-09-22 00:38:31 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360653004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360653004/20001
5 years, 3 months ago (2015-09-22 12:52:53 UTC) #4
mtklein
https://codereview.chromium.org/1360653004/diff/20001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (left): https://codereview.chromium.org/1360653004/diff/20001/include/core/SkImageGenerator.h#oldcode34 include/core/SkImageGenerator.h:34: * SkDELETE() on the generator. Therefore, generator should be ...
5 years, 3 months ago (2015-09-22 12:52:55 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-22 12:57:46 UTC) #7
mdempsky
https://codereview.chromium.org/1360653004/diff/20001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (left): https://codereview.chromium.org/1360653004/diff/20001/include/core/SkImageGenerator.h#oldcode34 include/core/SkImageGenerator.h:34: * SkDELETE() on the generator. Therefore, generator should be ...
5 years, 3 months ago (2015-09-22 13:00:08 UTC) #8
mtklein
lgtm
5 years, 3 months ago (2015-09-22 13:05:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360653004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360653004/40001
5 years, 3 months ago (2015-09-22 13:05:30 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 13:10:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/106b12427e642d067dd5b48664eb693653853583

Powered by Google App Engine
This is Rietveld 408576698