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

Issue 9121045: Switch AudioDevice classes from SyncSocket to CancelableSyncSocket. (Closed)

Created:
8 years, 11 months ago by tommi (sloooow) - chröme
Modified:
8 years, 10 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org, enal
Visibility:
Public.

Description

Switch AudioDevice classes from SyncSocket to CancelableSyncSocket. This fixes the double close issue and makes Stop() instant. Also, this addresses some issues reported by tsan (see bug reports). BUG=103711, 95509 TEST=content_unittests,media_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119769

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments, add temporary ScopedAllowIO for the audio thread cleanup+TODO for next cl. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -93 lines) Patch
M content/browser/renderer_host/media/audio_input_sync_writer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_sync_writer.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.h View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/media/audio_device.h View 2 chunks +1 line, -28 lines 0 comments Download
M content/renderer/media/audio_device.cc View 1 5 chunks +18 lines, -11 lines 4 comments Download
M content/renderer/media/audio_input_device.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/audio_input_device.cc View 1 11 chunks +38 lines, -39 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
tommi (sloooow) - chröme
8 years, 11 months ago (2012-01-27 13:34:14 UTC) #1
tommi (sloooow) - chröme
switching reviewers from Eugene to Shijing since Shijing was working on this initially.
8 years, 10 months ago (2012-01-30 12:05:46 UTC) #2
no longer working on chromium
Great work! only two nits, LGTM if you take a look at them. BR, /SX ...
8 years, 10 months ago (2012-01-30 13:35:17 UTC) #3
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/9121045/diff/1/content/renderer/media/audio_input_device.cc File content/renderer/media/audio_input_device.cc (right): https://chromiumcodereview.appspot.com/9121045/diff/1/content/renderer/media/audio_input_device.cc#newcode278 content/renderer/media/audio_input_device.cc:278: int pending_data; On 2012/01/30 13:35:18, xians1 wrote: > nit: ...
8 years, 10 months ago (2012-01-30 17:07:39 UTC) #4
no longer working on chromium
LGTM++
8 years, 10 months ago (2012-01-30 17:29:32 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 10 months ago (2012-01-30 17:39:12 UTC) #6
scherkus (not reviewing)
LGTM w/ some nits http://codereview.chromium.org/9121045/diff/8001/content/renderer/media/audio_device.cc File content/renderer/media/audio_device.cc (right): http://codereview.chromium.org/9121045/diff/8001/content/renderer/media/audio_device.cc#newcode274 content/renderer/media/audio_device.cc:274: base::CancelableSyncSocket* audio_socket = audio_socket_.get(); nit: ...
8 years, 10 months ago (2012-01-30 19:10:57 UTC) #7
tommi (sloooow) - chröme
Thanks Andrew, replies below. http://codereview.chromium.org/9121045/diff/8001/content/renderer/media/audio_device.cc File content/renderer/media/audio_device.cc (right): http://codereview.chromium.org/9121045/diff/8001/content/renderer/media/audio_device.cc#newcode274 content/renderer/media/audio_device.cc:274: base::CancelableSyncSocket* audio_socket = audio_socket_.get(); On ...
8 years, 10 months ago (2012-01-30 21:53:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/9121045/8001
8 years, 10 months ago (2012-01-30 21:53:33 UTC) #9
commit-bot: I haz the power
8 years, 10 months ago (2012-01-30 23:48:05 UTC) #10
Change committed as 119769

Powered by Google App Engine
This is Rietveld 408576698