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

Issue 2714063002: Introduce dchecked_cast, and start using it (Closed)

Created:
3 years, 10 months ago by kwiberg-webrtc
Modified:
3 years, 9 months ago
Reviewers:
hlundin-webrtc, ossu
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Introduce dchecked_cast, and start using it It's the faster, less strict cousin of checked_cast. BUG=none Review-Url: https://codereview.webrtc.org/2714063002 Cr-Commit-Position: refs/heads/master@{#16958} Committed: https://chromium.googlesource.com/external/webrtc/+/d3edd770ade4a9323e136a39737957963cc676b7

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -28 lines) Patch
M webrtc/base/safe_conversions.h View 1 chunk +9 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/acm_receiver.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/acm2/audio_coding_module.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/audio_format_conversion.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/expand.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/neteq_impl.cc View 9 chunks +12 lines, -13 lines 2 comments Download
M webrtc/modules/audio_coding/neteq/red_payload_splitter.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/statistics_calculator.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/time_stretch.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/tools/encode_neteq_input.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/congestion_controller/probe_controller.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
kwiberg-webrtc
I thought it would be involved to create dchecked_cast, but it was so trivial I ...
3 years, 10 months ago (2017-02-24 02:31:55 UTC) #4
hlundin-webrtc
lgtm
3 years, 10 months ago (2017-02-24 07:55:09 UTC) #7
ossu
lgtm https://codereview.webrtc.org/2714063002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/2714063002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1501 webrtc/modules/audio_coding/neteq/neteq_impl.cc:1501: *decoded_length += rtc::dchecked_cast<int>(result.num_decoded_samples); These decoded_length checks (above and ...
3 years, 9 months ago (2017-03-02 00:54:14 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2714063002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc File webrtc/modules/audio_coding/neteq/neteq_impl.cc (right): https://codereview.webrtc.org/2714063002/diff/1/webrtc/modules/audio_coding/neteq/neteq_impl.cc#newcode1501 webrtc/modules/audio_coding/neteq/neteq_impl.cc:1501: *decoded_length += rtc::dchecked_cast<int>(result.num_decoded_samples); On 2017/03/02 00:54:14, ossu wrote: > ...
3 years, 9 months ago (2017-03-02 02:13:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2714063002/1
3 years, 9 months ago (2017-03-02 02:13:51 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 02:52:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/d3edd770ade4a9323e136a397...

Powered by Google App Engine
This is Rietveld 408576698