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

Issue 1780743002: RELAND: MediaStream audio object graph untangling and clean-ups. (Closed)

Created:
4 years, 9 months ago by miu
Modified:
4 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, Peter Beverloo, imcheng+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mlamouri+watch-test-runner_chromium.org, jasonroberts+watch_google.com, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, isheriff+watch_chromium.org, jochen+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RELAND: MediaStream audio object graph untangling and clean-ups. This is a re-land of https://codereview.chromium.org/1721273002 with the signaling thread check in WebRtcLocalAudioTrackAdapter::Create() reverted back to the way it was. This is needed because the layout tests do not run in a full browser environment where the WebRTC signaling thread is present. ------------------ORIGINAL DESCRIPTION FOLLOWS------------------ This change consists of a number of "clean-up" changes that are being done to make the soon-upcoming refactoring of these classes go much more smoothly. These are: 1. Public content MediaStreamApi functions cleaned up. Removed "duplicated" functions that don't really do the same thing. Removed hard-coded audio parameters from AddAudioTrackToMediaStream(). 2. Eliminated ref-counting of WebRtcAudioCapturer and WebAudioCaptureSource. Removed unnecessary references to these from WebRtcLocalAudioTrack. Not only did this improve encapsulation of some code, but it also allowed for the removal of several dozen lines of "dead weight" testing set-upcode throughout the directory. 3. Renamed MediaStreamAudioTrack::GetTrack() method to From(), to be consistent with how this pattern is used in other parts of libcontent, and added a MediaStreamAudioSource::From(). 4. Moved audio level calculations out of WebRtcLocalAudioTrack and into WebRtcAudioCapturer. This way, when multiple tracks are present, the calculation is only being done once on the same audio. 5. Eliminated call to WebRtcCapturer::Stop() from WebRtcAudioDeviceImpl::Terminate(), which are each supposed to run on different threads. From testing, DCHECKs should have been firing, but weren't, so the Terminate() method seems to be dead code. 6. Miscellaneous other "compaction" and comment updates. BUG=577881, 577874 TBR=jochen@chromium.org,finnur@chromium.org,o1ka@chromium.org,tommi@chromium.org,peter@chromium.org,sof@chromium.org Committed: https://crrev.com/cfbc8cb058dcc6cf88f1c4d70c8eb76652c39123 Cr-Commit-Position: refs/heads/master@{#380214}

Patch Set 1 : PS10 from https://codereview.chromium.org/1721273002 #

Patch Set 2 : LOG(ERROR) instead of CHECK() when missing signaling thread in WebRtcLocalAudioTrackAdapter::Create… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+760 lines, -812 lines) Patch
M chrome/renderer/extensions/cast_streaming_native_handler.cc View 2 chunks +20 lines, -5 lines 0 comments Download
M content/public/renderer/media_stream_api.h View 1 chunk +14 lines, -22 lines 0 comments Download
M content/public/renderer/media_stream_api.cc View 2 chunks +65 lines, -84 lines 0 comments Download
M content/public/renderer/media_stream_audio_sink.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M content/renderer/media/audio_track_recorder.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/audio_track_recorder_unittest.cc View 2 chunks +1 line, -7 lines 0 comments Download
M content/renderer/media/media_recorder_handler.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/media/media_stream_audio_level_calculator.h View 2 chunks +35 lines, -14 lines 0 comments Download
M content/renderer/media/media_stream_audio_level_calculator.cc View 4 chunks +24 lines, -11 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.h View 3 chunks +48 lines, -9 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.cc View 3 chunks +34 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_audio_track.h View 4 chunks +28 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_audio_track.cc View 3 chunks +26 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_center.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_renderer_factory_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/mock_media_stream_registry.cc View 2 chunks +2 lines, -13 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 3 chunks +2 lines, -12 lines 0 comments Download
M content/renderer/media/speech_recognition_audio_sink.cc View 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/speech_recognition_audio_sink_unittest.cc View 3 chunks +5 lines, -13 lines 0 comments Download
M content/renderer/media/track_audio_renderer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/media/webaudio_capturer_source.h View 4 chunks +8 lines, -18 lines 0 comments Download
M content/renderer/media/webaudio_capturer_source.cc View 3 chunks +13 lines, -12 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_audio_track.h View 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_audio_track.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h View 3 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc View 3 chunks +3 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.h View 2 chunks +4 lines, -9 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 7 chunks +30 lines, -41 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_local_audio_track_adapter.h View 4 chunks +19 lines, -21 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_local_audio_track_adapter.cc View 1 6 chunks +43 lines, -36 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_media_stream_adapter.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc View 2 chunks +1 line, -10 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 8 chunks +13 lines, -19 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 14 chunks +52 lines, -112 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer_unittest.cc View 3 chunks +25 lines, -26 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 4 chunks +9 lines, -9 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 8 chunks +36 lines, -51 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider_unittest.cc View 2 chunks +4 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.h View 4 chunks +17 lines, -47 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.cc View 3 chunks +22 lines, -94 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 16 chunks +92 lines, -41 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
miu
Confirmed layout tests are passing now.
4 years, 9 months ago (2016-03-09 20:57:12 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780743002/20001
4 years, 9 months ago (2016-03-09 20:59:04 UTC) #3
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-09 21:09:23 UTC) #4
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 21:11:11 UTC) #6
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cfbc8cb058dcc6cf88f1c4d70c8eb76652c39123
Cr-Commit-Position: refs/heads/master@{#380214}

Powered by Google App Engine
This is Rietveld 408576698