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 2120273004: Getting rid of AudioHardwareConfig and its synchronous IPC. (Closed)

Created:
4 years, 5 months ago by o1ka
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, Henrik Grunell, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, vanellope-cl_google.com, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Getting rid of AudioHardwareConfig and its synchronous IPC. Switching to AudioDeviceFactory::GetOutputDeviceInfo() instead. BUG=611404, 549125, 422522 Committed: https://crrev.com/a148aeb2bc27a99f25b97931dd94e28f2eab6f1d Cr-Commit-Position: refs/heads/master@{#405737}

Patch Set 1 #

Patch Set 2 : compile error fix #

Total comments: 4

Patch Set 3 : frame id fix #

Total comments: 10

Patch Set 4 : Rebased to guidou@ changes, dropped unknown frame id and default param caching #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -303 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 3 chunks +0 lines, -22 lines 1 comment Download
M content/common/view_messages.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/media/audio_device_factory.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/audio_message_filter.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/audio_renderer_sink_cache_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_renderer_factory_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 3 chunks +15 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +0 lines, -15 lines 0 comments Download
M media/base/BUILD.gn View 2 chunks +0 lines, -3 lines 0 comments Download
D media/base/audio_hardware_config.h View 1 chunk +0 lines, -56 lines 0 comments Download
D media/base/audio_hardware_config.cc View 1 chunk +0 lines, -87 lines 0 comments Download
D media/base/audio_hardware_config_unittest.cc View 1 chunk +0 lines, -91 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/media.gyp View 2 chunks +0 lines, -3 lines 0 comments Download
M media/mojo/services/test_mojo_media_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/mojo/services/test_mojo_media_client.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/renderers/default_renderer_factory.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 38 (10 generated)
o1ka
PTAL
4 years, 5 months ago (2016-07-05 14:14:41 UTC) #3
Guido Urdaneta
https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc File content/renderer/media/audio_renderer_sink_cache_impl.cc (right): https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode59 content/renderer/media/audio_renderer_sink_cache_impl.cc:59: CacheEntry cache_entry = {source_render_frame_id, Should this have a thread ...
4 years, 5 months ago (2016-07-05 15:10:39 UTC) #4
Guido Urdaneta
lgtm https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc File content/renderer/media/audio_renderer_sink_cache_impl.cc (right): https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode59 content/renderer/media/audio_renderer_sink_cache_impl.cc:59: CacheEntry cache_entry = {source_render_frame_id, On 2016/07/05 15:10:39, Guido ...
4 years, 5 months ago (2016-07-05 15:16:20 UTC) #5
o1ka
https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc File content/renderer/media/audio_renderer_sink_cache_impl.cc (right): https://codereview.chromium.org/2120273004/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode59 content/renderer/media/audio_renderer_sink_cache_impl.cc:59: CacheEntry cache_entry = {source_render_frame_id, On 2016/07/05 15:10:39, Guido Urdaneta ...
4 years, 5 months ago (2016-07-05 15:16:38 UTC) #6
o1ka
PTAL: Now renderer frame id fixed.
4 years, 5 months ago (2016-07-06 13:18:28 UTC) #8
Guido Urdaneta
still lgtm % typo https://codereview.chromium.org/2120273004/diff/30027/content/renderer/media/audio_device_factory.h File content/renderer/media/audio_device_factory.h (right): https://codereview.chromium.org/2120273004/diff/30027/content/renderer/media/audio_device_factory.h#newcode51 content/renderer/media/audio_device_factory.h:51: // TODO(olka, guidou): replace with ...
4 years, 5 months ago (2016-07-06 14:16:16 UTC) #9
DaleCurtis
https://codereview.chromium.org/2120273004/diff/30027/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/2120273004/diff/30027/content/browser/renderer_host/render_message_filter.cc#newcode241 content/browser/renderer_host/render_message_filter.cc:241: return NULL; Remove this since no need anymore. https://codereview.chromium.org/2120273004/diff/30027/content/renderer/media/audio_device_factory.h ...
4 years, 5 months ago (2016-07-06 18:53:37 UTC) #10
miu
https://codereview.chromium.org/2120273004/diff/30027/content/renderer/media/audio_device_factory.h File content/renderer/media/audio_device_factory.h (right): https://codereview.chromium.org/2120273004/diff/30027/content/renderer/media/audio_device_factory.h#newcode52 content/renderer/media/audio_device_factory.h:52: enum { kUnknownFrameIdForDefaultDevice = 1 }; On 2016/07/06 18:53:36, ...
4 years, 5 months ago (2016-07-06 19:10:57 UTC) #12
chromium-reviews
We do not allow output with a random frame id. We just use some frame ...
4 years, 5 months ago (2016-07-06 20:19:01 UTC) #13
chromium-reviews
It's a question if we want to cache default parameters. I would cache them for ...
4 years, 5 months ago (2016-07-06 20:27:03 UTC) #14
chromium-reviews
Or we can do all the way around: skip caching defaults and look at the ...
4 years, 5 months ago (2016-07-06 20:29:32 UTC) #15
miu
On 2016/07/06 20:19:01, chromium-reviews wrote: > We do not allow output with a random frame ...
4 years, 5 months ago (2016-07-06 21:53:08 UTC) #16
o1ka
On 2016/07/06 21:53:08, miu wrote: > On 2016/07/06 20:19:01, chromium-reviews wrote: > > We do ...
4 years, 5 months ago (2016-07-07 06:30:28 UTC) #17
o1ka
Summing up: 1) After a discussion with giudou@ we decided to first land a CL ...
4 years, 5 months ago (2016-07-07 14:50:45 UTC) #18
miu
On 2016/07/07 06:30:28, o1ka wrote: > On 2016/07/06 21:53:08, miu wrote: > > Perhaps a ...
4 years, 5 months ago (2016-07-08 01:43:30 UTC) #19
o1ka
PTAL: Rebased to guidou@ changes, dropped unknown frame id and default device param caching. https://codereview.chromium.org/2120273004/diff/30027/content/browser/renderer_host/render_message_filter.cc ...
4 years, 5 months ago (2016-07-13 09:52:41 UTC) #20
o1ka
avi@chromium.org: Please review content/browser/renderer_host/render_message_filter.* content/renderer/pepper/* content/renderer/renderer_thread_impl.* kenrb@chromium.org: Please review content/common/view_messages.h guidou@ - still lgtm?
4 years, 5 months ago (2016-07-13 10:00:29 UTC) #22
Guido Urdaneta
still lgtm
4 years, 5 months ago (2016-07-13 11:52:36 UTC) #24
Avi (use Gerrit)
LGTM
4 years, 5 months ago (2016-07-13 15:57:02 UTC) #25
DaleCurtis
lgtm
4 years, 5 months ago (2016-07-13 16:49:27 UTC) #26
kenrb
ipc lgtm
4 years, 5 months ago (2016-07-14 13:52:37 UTC) #28
miu
lgtm https://codereview.chromium.org/2120273004/diff/70001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (left): https://codereview.chromium.org/2120273004/diff/70001/content/browser/renderer_host/render_message_filter.cc#oldcode244 content/browser/renderer_host/render_message_filter.cc:244: if (message.type() == ViewHostMsg_GetAudioHardwareConfig::ID) Yuk. We used to ...
4 years, 5 months ago (2016-07-14 21:17:04 UTC) #29
o1ka
On 2016/07/14 21:17:04, miu wrote: > lgtm > > https://codereview.chromium.org/2120273004/diff/70001/content/browser/renderer_host/render_message_filter.cc > File content/browser/renderer_host/render_message_filter.cc (left): > ...
4 years, 5 months ago (2016-07-15 08:53:11 UTC) #30
o1ka
Thanks everybody for the review
4 years, 5 months ago (2016-07-15 08:53:45 UTC) #31
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/2120273004/70001
4 years, 5 months ago (2016-07-15 08:54:05 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:70001)
4 years, 5 months ago (2016-07-15 10:24:27 UTC) #35
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 10:24:33 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 10:26:31 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a148aeb2bc27a99f25b97931dd94e28f2eab6f1d
Cr-Commit-Position: refs/heads/master@{#405737}

Powered by Google App Engine
This is Rietveld 408576698