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

Issue 12383016: Merge AssociateStreamWithProducer message into CreateStream message for both audio output and input. (Closed)

Created:
7 years, 9 months ago by miu
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Merge AssociateStreamWithProducer message into CreateStream message for both audio output and input. Also: 1. Removed RendererAudioOutputDevice class, since it's no longer necessary to manage asynchronously associating a render view with a stream. 2. Clean-ups: Applied several changes/bug fixes to bring the audio input classes/impls up-to-date w.r.t. the audio output classes/impls. Filed bug 179597 for follow-up. 3. Added missing plumbing for associating audio input devices created by WebRtcAudioCapturer to render views. 4. Updated unit tests. BUG=166779 TEST=media_unittests, content_unittests, TSAN, chrome/test/functional/webrtc_*.py, and manual testing described in http://codereview.chromium.org/11359196/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194711

Patch Set 1 #

Total comments: 4

Patch Set 2 : Completed changes for output and input impls, clean-ups, etc. #

Patch Set 3 : rebase #

Total comments: 51

Patch Set 4 : Addressed review comments. #

Total comments: 9

Patch Set 5 : rebase (massive) + minor tweaks from Dale's comments #

Patch Set 6 : One less semicolon. Trololololo. #

Patch Set 7 : rebase after r194401 (removal of flush) #

Total comments: 4

Patch Set 8 : Cleanup in pepper_platform_audio_input_impl, per yzshen@. #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -714 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.h View 1 2 3 4 3 chunks +12 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -30 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 4 5 6 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 4 5 6 5 chunks +14 lines, -42 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 3 4 2 chunks +8 lines, -15 lines 0 comments Download
M content/common/media/audio_messages.h View 1 2 3 4 5 6 2 chunks +17 lines, -17 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/audio_device_factory.h View 1 2 3 2 chunks +17 lines, -12 lines 0 comments Download
M content/renderer/media/audio_device_factory.cc View 1 2 3 4 2 chunks +25 lines, -16 lines 0 comments Download
M content/renderer/media/audio_input_message_filter.h View 1 2 3 4 4 chunks +15 lines, -22 lines 0 comments Download
M content/renderer/media/audio_input_message_filter.cc View 1 2 3 4 2 chunks +73 lines, -33 lines 0 comments Download
M content/renderer/media/audio_message_filter.h View 1 2 3 4 5 6 6 chunks +21 lines, -25 lines 0 comments Download
M content/renderer/media/audio_message_filter.cc View 1 2 3 4 5 6 2 chunks +70 lines, -32 lines 0 comments Download
M content/renderer/media/audio_message_filter_unittest.cc View 1 6 chunks +31 lines, -11 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
D content/renderer/media/renderer_audio_output_device.h View 1 chunk +0 lines, -58 lines 0 comments Download
D content/renderer/media/renderer_audio_output_device.cc View 1 1 chunk +0 lines, -66 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 3 chunks +4 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 4 3 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input_impl.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -16 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input_impl.cc View 1 2 3 4 5 6 7 8 chunks +21 lines, -36 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output_impl.h View 1 4 chunks +3 lines, -9 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output_impl.cc View 1 2 3 3 chunks +28 lines, -22 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -5 lines 0 comments Download
M media/audio/audio_input_device.h View 1 2 3 4 8 chunks +32 lines, -12 lines 0 comments Download
M media/audio/audio_input_device.cc View 1 2 3 4 10 chunks +53 lines, -51 lines 0 comments Download
M media/audio/audio_input_ipc.h View 1 2 3 4 1 chunk +17 lines, -30 lines 0 comments Download
M media/audio/audio_output_device.h View 1 2 3 4 5 6 4 chunks +11 lines, -19 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 4 5 6 9 chunks +39 lines, -23 lines 0 comments Download
M media/audio/audio_output_device_unittest.cc View 1 2 3 4 5 6 7 chunks +14 lines, -18 lines 0 comments Download
M media/audio/audio_output_ipc.h View 1 2 3 4 5 6 1 chunk +17 lines, -30 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
DaleCurtis
- I like the removal of |stream_id_| I was just thinking that was ridiculous. - ...
7 years, 9 months ago (2013-03-01 00:27:52 UTC) #1
DaleCurtis
I also just realized MessageFilter is ref counted while AudioOutputIPC is not. You should probably ...
7 years, 9 months ago (2013-03-01 03:05:12 UTC) #2
miu
Hold off on further review until I've polished and completed this change. Responses to comments ...
7 years, 9 months ago (2013-03-02 00:24:15 UTC) #3
miu
Dale, All set for review. This looks far worse than it really is (most files ...
7 years, 9 months ago (2013-03-05 05:44:25 UTC) #4
miu
palmer: Please review IPC messaging changes in content/common/media/audio_messages.h. xians: Please review webrtc-related changes: content/renderer/media/webrtc* and ...
7 years, 9 months ago (2013-03-05 05:45:45 UTC) #5
no longer working on chromium
It looks great, I have some nits and two questions. lgtm on the webrtc code. ...
7 years, 9 months ago (2013-03-05 18:33:09 UTC) #6
palmer
https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode239 content/browser/renderer_host/media/audio_input_renderer_host.cc:239: uint32 mem_size = sizeof(media::AudioInputBufferParameters) + buffer_size; This addition could ...
7 years, 9 months ago (2013-03-05 21:09:32 UTC) #7
DaleCurtis
https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode217 content/browser/renderer_host/media/audio_input_renderer_host.cc:217: DCHECK_LT(0, render_view_id); Yoda is persona non grata in Chrome ...
7 years, 9 months ago (2013-03-05 23:29:54 UTC) #8
miu
xians: Addressed your comments. Will upload code changes after addressing other reviewers' comments. Thanks for ...
7 years, 9 months ago (2013-03-06 19:25:41 UTC) #9
miu
Addressed all reviewers' comments. PTAL. Thanks, Yuri https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc File content/browser/renderer_host/media/audio_input_renderer_host.cc (right): https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_input_renderer_host.cc#newcode217 content/browser/renderer_host/media/audio_input_renderer_host.cc:217: DCHECK_LT(0, render_view_id); ...
7 years, 9 months ago (2013-03-06 22:36:52 UTC) #10
palmer
IPC security LGTM. Looking forward to more fixes. :) https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/12383016/diff/6001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode275 content/browser/renderer_host/media/audio_renderer_host.cc:275: ...
7 years, 9 months ago (2013-03-06 23:11:59 UTC) #11
DaleCurtis
https://codereview.chromium.org/12383016/diff/24001/content/renderer/media/audio_device_factory.cc File content/renderer/media/audio_device_factory.cc (right): https://codereview.chromium.org/12383016/diff/24001/content/renderer/media/audio_device_factory.cc#newcode30 content/renderer/media/audio_device_factory.cc:30: RenderThreadImpl::current()->audio_message_filter(); I don't think this works? AudioRendererMixerManager will call ...
7 years, 9 months ago (2013-03-07 21:02:58 UTC) #12
miu
Dale: Getting back to this, finally! ;-) We were very close. I had to rebase ...
7 years, 8 months ago (2013-04-16 00:07:35 UTC) #13
DaleCurtis
lgtm. Thanks Yuri!
7 years, 8 months ago (2013-04-16 20:35:04 UTC) #14
miu
avi: Need OWNERs approval for content/content_renderer.gypi yzshen: Need OWNERs approval for content/renderer/pepper/* Thanks, Yuri
7 years, 8 months ago (2013-04-16 21:13:17 UTC) #15
yzshen1
lgtm https://codereview.chromium.org/12383016/diff/55001/content/renderer/pepper/pepper_platform_audio_input_impl.cc File content/renderer/pepper/pepper_platform_audio_input_impl.cc (right): https://codereview.chromium.org/12383016/diff/55001/content/renderer/pepper/pepper_platform_audio_input_impl.cc#newcode144 content/renderer/pepper/pepper_platform_audio_input_impl.cc:144: CHECK(ipc_); [optional] shall we return false here instead ...
7 years, 8 months ago (2013-04-17 05:27:23 UTC) #16
miu
https://codereview.chromium.org/12383016/diff/55001/content/renderer/pepper/pepper_platform_audio_input_impl.cc File content/renderer/pepper/pepper_platform_audio_input_impl.cc (right): https://codereview.chromium.org/12383016/diff/55001/content/renderer/pepper/pepper_platform_audio_input_impl.cc#newcode144 content/renderer/pepper/pepper_platform_audio_input_impl.cc:144: CHECK(ipc_); On 2013/04/17 05:27:23, yzshen1 wrote: > [optional] shall ...
7 years, 8 months ago (2013-04-17 20:01:38 UTC) #17
miu
avi: I put you on TBR so I can commit (just needed your OWNERS approval ...
7 years, 8 months ago (2013-04-17 20:04:19 UTC) #18
Avi (use Gerrit)
lgtm Out of my expertise, stamping it as it looks reasonable.
7 years, 8 months ago (2013-04-17 20:14:37 UTC) #19
miu
Committed patchset #9 manually as r194711 (presubmit successful).
7 years, 8 months ago (2013-04-17 23:09:50 UTC) #20
henrika (OOO until Aug 14)
7 years, 8 months ago (2013-04-18 08:12:40 UTC) #21
Message was sent while issue was closed.
Thanks Yuri, and sorry for not adding comments. For some strange reason I was
not notified until the patch was committed.

LGTM ;-)

Powered by Google App Engine
This is Rietveld 408576698