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

Issue 1252943007: Split MoveReadPosition into Forward and Backward versions. (Closed)

Created:
5 years, 5 months ago by Andrew MacDonald
Modified:
5 years, 4 months ago
Reviewers:
Peter Kasting
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, bjornv1, aluebs-webrtc, Andrew MacDonald
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Split MoveReadPosition into Forward and Backward versions. This makes the interface consistent in its use of size_t, and will reduce casts in callers as they shift to size_t, e.g. this CL: https://codereview.webrtc.org/1227203003/ Committed: https://crrev.com/d40af69278f867965fd10313f9c99f90266a9469 Cr-Commit-Position: refs/heads/master@{#9646}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix windows error. #

Patch Set 3 : Windows again... #

Total comments: 2

Patch Set 4 : Descriptive comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -14 lines) Patch
M webrtc/common_audio/audio_ring_buffer.h View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
M webrtc/common_audio/audio_ring_buffer.cc View 1 2 4 chunks +15 lines, -4 lines 0 comments Download
M webrtc/common_audio/audio_ring_buffer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/common_audio/blocker.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Andrew MacDonald
5 years, 5 months ago (2015-07-24 19:02:13 UTC) #2
Andrew MacDonald
https://codereview.webrtc.org/1252943007/diff/1/webrtc/common_audio/audio_ring_buffer.cc File webrtc/common_audio/audio_ring_buffer.cc (right): https://codereview.webrtc.org/1252943007/diff/1/webrtc/common_audio/audio_ring_buffer.cc#newcode69 webrtc/common_audio/audio_ring_buffer.cc:69: const size_t moved = rtc::checked_cast<size_t>( We already check this ...
5 years, 5 months ago (2015-07-24 19:06:39 UTC) #3
Peter Kasting
LGTM https://codereview.webrtc.org/1252943007/diff/40001/webrtc/common_audio/audio_ring_buffer.h File webrtc/common_audio/audio_ring_buffer.h (right): https://codereview.webrtc.org/1252943007/diff/40001/webrtc/common_audio/audio_ring_buffer.h#newcode41 webrtc/common_audio/audio_ring_buffer.h:41: // Move the read position. The forward version ...
5 years, 4 months ago (2015-07-27 20:23:37 UTC) #4
Andrew MacDonald
https://codereview.webrtc.org/1252943007/diff/40001/webrtc/common_audio/audio_ring_buffer.h File webrtc/common_audio/audio_ring_buffer.h (right): https://codereview.webrtc.org/1252943007/diff/40001/webrtc/common_audio/audio_ring_buffer.h#newcode41 webrtc/common_audio/audio_ring_buffer.h:41: // Move the read position. The forward version advances ...
5 years, 4 months ago (2015-07-28 07:11:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1252943007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1252943007/60001
5 years, 4 months ago (2015-07-28 07:11:21 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-07-28 07:53:05 UTC) #9
commit-bot: I haz the power
5 years, 4 months ago (2015-07-28 07:53:11 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d40af69278f867965fd10313f9c99f90266a9469
Cr-Commit-Position: refs/heads/master@{#9646}

Powered by Google App Engine
This is Rietveld 408576698