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

Issue 2333273002: Now uses rtc::Buffer in AudioDeviceBuffer (Closed)

Created:
4 years, 3 months ago by henrika_webrtc
Modified:
4 years, 2 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Now uses rtc::Buffer in AudioDeviceBuffer. The main goal of this CL is to remove old buffer handling using static arrays and switch to the improved rtc::Buffer class instead. By doing so, we can remove some members (since Buffer maintains them instead) and do some additional cleanup. This CL also fixes some minor style issues and improves the locking mechanism. Finally, AudioDeviceBuffer::SetRecordingChannel() is deprecated since it has never been used and is not included in any test. BUG=NONE Committed: https://crrev.com/5588a13fe7c2768bf6a6b9dc6492e8076db02369 Cr-Commit-Position: refs/heads/master@{#14661}

Patch Set 1 #

Total comments: 24

Patch Set 2 : rebased #

Patch Set 3 : Now uses lamdas #

Patch Set 4 : Minor changes before asking for new review #

Patch Set 5 : nit #

Patch Set 6 : nit #

Patch Set 7 : Fixes broken unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -165 lines) Patch
M webrtc/modules/audio_device/audio_device_buffer.h View 5 chunks +10 lines, -28 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_buffer.cc View 1 2 3 4 5 6 10 chunks +65 lines, -104 lines 0 comments Download
M webrtc/modules/audio_device/test/audio_device_test_api.cc View 1 2 3 4 5 6 1 chunk +0 lines, -33 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
henrika_webrtc
PTAL
4 years, 3 months ago (2016-09-13 13:38:14 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/2333273002/diff/1/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2333273002/diff/1/webrtc/modules/audio_device/audio_device_buffer.cc#newcode241 webrtc/modules/audio_device/audio_device_buffer.cc:241: } An elegant way to do this, which avoids ...
4 years, 3 months ago (2016-09-14 08:39:05 UTC) #5
henrika_webrtc
Thanks. Uploading answers and comments. Will try to make time and implement the changes today ...
4 years, 3 months ago (2016-09-14 10:26:54 UTC) #6
kwiberg-webrtc
https://codereview.webrtc.org/2333273002/diff/1/webrtc/modules/audio_device/audio_device_buffer.cc File webrtc/modules/audio_device/audio_device_buffer.cc (right): https://codereview.webrtc.org/2333273002/diff/1/webrtc/modules/audio_device/audio_device_buffer.cc#newcode241 webrtc/modules/audio_device/audio_device_buffer.cc:241: } On 2016/09/14 10:26:53, henrika_webrtc wrote: > Thanks, will ...
4 years, 3 months ago (2016-09-14 11:17:18 UTC) #7
henrika_webrtc
Sorry for long delay here. Rebased and added lambdas as proposed. Will see if I ...
4 years, 2 months ago (2016-10-07 12:18:05 UTC) #8
henrika_webrtc
Sorry for the delay here. Now asking for one more round. Keeping it simple and ...
4 years, 2 months ago (2016-10-17 09:31:11 UTC) #9
kwiberg-webrtc
lgtm. Doing those two follow-up CLs sounds good to me.
4 years, 2 months ago (2016-10-17 11:57:06 UTC) #10
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/2333273002/80001
4 years, 2 months ago (2016-10-17 12:01:28 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/15218)
4 years, 2 months ago (2016-10-17 12:10:37 UTC) #14
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/2333273002/120001
4 years, 2 months ago (2016-10-18 11:49:15 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-18 12:14:33 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 12:14:40 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5588a13fe7c2768bf6a6b9dc6492e8076db02369
Cr-Commit-Position: refs/heads/master@{#14661}

Powered by Google App Engine
This is Rietveld 408576698