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

Issue 2879703003: [chromecast] Moves CastAudioOutputStream::Backend to CMA thread. (Closed)

Created:
3 years, 7 months ago by alokp
Modified:
3 years, 6 months ago
Reviewers:
slan
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, yzshen+watch_chromium.org, mfoltz+watch_chromium.org, mlamouri+watch-media_chromium.org, miu+watch_chromium.org, lcwu+watch_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, halliwell+watch_chromium.org, xjz+watch_chromium.org, imcheng+watch_chromium.org, jasonroberts+watch_google.com, feature-media-reviews_chromium.org, alokp+watch_chromium.org, avayvod+watch_chromium.org, Aaron Boodman, mac-reviews_chromium.org, darin (slow to review), isheriff+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[chromecast] Moves CastAudioOutputStream::Backend to CMA thread. crrev.com/2cbd4fcab300af5aa4ef76752673901d58da0f24 moved CastAudioOutputStream along with CastAudioOutputStream::Backend to AudioThread, which is wrong. The backend need to run on CMA thread. In addition to fixing the threading model, this patch: - Lets AudioManager use MediaPipelineBackendFactory instead of BackendManager - Updates tests to use the threading model used in production - Adds another basic CastAudioManager test that creates AudioOutputStreamProxy, which is used in production. Review-Url: https://codereview.chromium.org/2879703003 Cr-Commit-Position: refs/heads/master@{#475726} Committed: https://chromium.googlesource.com/chromium/src/+/2341e24bf7f4b05f38a2c59354163984d076e25b

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : moar work #

Patch Set 4 : moar work #

Patch Set 5 : fixes tests #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : cleanup #

Total comments: 19

Patch Set 10 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -602 lines) Patch
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M chromecast/media/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chromecast/media/audio/cast_audio_manager.h View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -20 lines 0 comments Download
M chromecast/media/audio/cast_audio_manager.cc View 1 2 3 4 5 chunks +13 lines, -24 lines 0 comments Download
A chromecast/media/audio/cast_audio_manager_unittest.cc View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M chromecast/media/audio/cast_audio_mixer.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -15 lines 0 comments Download
M chromecast/media/audio/cast_audio_mixer.cc View 1 2 3 4 5 6 7 8 10 chunks +77 lines, -65 lines 0 comments Download
M chromecast/media/audio/cast_audio_mixer_unittest.cc View 1 2 3 4 5 6 12 chunks +39 lines, -105 lines 0 comments Download
M chromecast/media/audio/cast_audio_output_stream.h View 1 2 3 2 chunks +2 lines, -17 lines 0 comments Download
M chromecast/media/audio/cast_audio_output_stream.cc View 1 2 3 4 5 6 7 8 8 chunks +188 lines, -167 lines 0 comments Download
M chromecast/media/audio/cast_audio_output_stream_unittest.cc View 1 2 3 4 5 6 20 chunks +87 lines, -96 lines 0 comments Download
M chromecast/media/cma/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +30 lines, -21 lines 0 comments Download
M chromecast/media/cma/backend/BUILD.gn View 1 chunk +2 lines, -1 line 0 comments Download
M chromecast/media/cma/backend/media_pipeline_backend_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -23 lines 0 comments Download
D chromecast/media/cma/backend/media_pipeline_backend_factory.cc View 1 chunk +0 lines, -29 lines 0 comments Download
A + chromecast/media/cma/backend/media_pipeline_backend_factory_impl.h View 3 chunks +10 lines, -12 lines 0 comments Download
A + chromecast/media/cma/backend/media_pipeline_backend_factory_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A chromecast/media/cma/test/mock_media_pipeline_backend_factory.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chromecast/media/cma/test/mock_media_pipeline_backend_factory.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (23 generated)
alokp
3 years, 7 months ago (2017-05-25 23:50:09 UTC) #17
slan
Pretty much just nits. Need to step back and take a look at the threading ...
3 years, 6 months ago (2017-05-30 16:26:02 UTC) #20
alokp
https://codereview.chromium.org/2879703003/diff/160001/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/2879703003/diff/160001/chromecast/browser/cast_content_browser_client.cc#newcode200 chromecast/browser/cast_content_browser_client.cc:200: // TODO(alokp): Consider switching off the mixer on audio ...
3 years, 6 months ago (2017-05-30 23:19:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879703003/180001
3 years, 6 months ago (2017-05-30 23:20:41 UTC) #24
slan
still lgtm https://codereview.chromium.org/2879703003/diff/160001/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/2879703003/diff/160001/chromecast/browser/cast_content_browser_client.cc#newcode200 chromecast/browser/cast_content_browser_client.cc:200: // TODO(alokp): Consider switching off the mixer ...
3 years, 6 months ago (2017-05-30 23:44:39 UTC) #25
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 01:40:04 UTC) #29
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/2341e24bf7f4b05f38a2c5935416...

Powered by Google App Engine
This is Rietveld 408576698