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

Issue 2803073002: Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio (Closed)

Created:
3 years, 8 months ago by hongchan
Modified:
3 years, 8 months ago
Reviewers:
Raymond Toy
CC:
chromium-reviews, blink-reviews, kinuko+watch, Raymond Toy, mac-reviews_chromium.org, hongchan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio This CL is the second part of the conversion. It manually replaces: - RELEASE_ASSERT() with CHECK(). - ASSERT(...args) with one or more DCHECK_op(arg). With this CL the following script returns 0 result. ``` cd ${CHROME_SRC}/third_party/WebKit/Source/platform/audio grep -rnw . -e 'ASSERT(' ``` BUG=707655 Review-Url: https://codereview.chromium.org/2803073002 Cr-Original-Commit-Position: refs/heads/master@{#462904} Committed: https://chromium.googlesource.com/chromium/src/+/f90cae07269c724f98ca3c196ea37ce7f6a801d5 Review-Url: https://codereview.chromium.org/2803073002 Cr-Commit-Position: refs/heads/master@{#462958} Committed: https://chromium.googlesource.com/chromium/src/+/36640ecf2e136c9d8d4dd1a4a25d9175129bb587

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix compilation error on Win (static_cast<unsigned>(ENUM)) #

Patch Set 3 : Removing DCHECK_IS_ON from FFTFrameFFMPEG.cpp #

Patch Set 4 : Removing DCHECK_IS_ON from FFTFrameOpenMAXDLAndroid.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -60 lines) Patch
M third_party/WebKit/Source/platform/audio/AudioArray.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioBus.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioChannel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioResamplerKernel.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioUtilities.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/DirectConvolver.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFElevation.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFKernel.cpp View 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFPanner.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/IIRFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/MultiChannelResampler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/ReverbConvolverStage.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/SincResampler.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/ffmpeg/FFTFrameFFMPEG.cpp View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/ipp/FFTFrameIPP.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
hongchan
PTAL. This is done manually.
3 years, 8 months ago (2017-04-06 16:12:55 UTC) #2
Raymond Toy
lgtm https://codereview.chromium.org/2803073002/diff/1/third_party/WebKit/Source/platform/audio/AudioArray.h File third_party/WebKit/Source/platform/audio/AudioArray.h (right): https://codereview.chromium.org/2803073002/diff/1/third_party/WebKit/Source/platform/audio/AudioArray.h#newcode87 third_party/WebKit/Source/platform/audio/AudioArray.h:87: CHECK(allocation); Comment: This should have been done in ...
3 years, 8 months ago (2017-04-06 17:48:16 UTC) #3
hongchan
https://codereview.chromium.org/2803073002/diff/1/third_party/WebKit/Source/platform/audio/AudioArray.h File third_party/WebKit/Source/platform/audio/AudioArray.h (right): https://codereview.chromium.org/2803073002/diff/1/third_party/WebKit/Source/platform/audio/AudioArray.h#newcode87 third_party/WebKit/Source/platform/audio/AudioArray.h:87: CHECK(allocation); On 2017/04/06 17:48:16, Raymond Toy wrote: > Comment: ...
3 years, 8 months ago (2017-04-06 17:52:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2803073002/1
3 years, 8 months ago (2017-04-06 17:53:05 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/383655)
3 years, 8 months ago (2017-04-06 18:25:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2803073002/40001
3 years, 8 months ago (2017-04-07 15:24:53 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/f90cae07269c724f98ca3c196ea37ce7f6a801d5
3 years, 8 months ago (2017-04-07 17:17:38 UTC) #18
hongchan
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2807593003/ by hongchan@chromium.org. ...
3 years, 8 months ago (2017-04-07 17:28:03 UTC) #19
findit-for-me
Findit confirmed this CL at revision 462904 as the culprit for failures in the build ...
3 years, 8 months ago (2017-04-07 17:36:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2803073002/60001
3 years, 8 months ago (2017-04-07 17:44:11 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 19:26:18 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/36640ecf2e136c9d8d4dd1a4a25d...

Powered by Google App Engine
This is Rietveld 408576698