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

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)

Created:
3 years, 8 months ago by flim-chromium
Modified:
3 years, 7 months ago
Reviewers:
slan, DaleCurtis, *o1ka
CC:
chromium-reviews, feature-media-reviews_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Indicates whether it's preferable to use a source's hardware params. In most cases, the default value is true. If WebAudio is attached, this is set to false such that the renderer instead uses the native sample rate, channel count, and layout without rebuffering. BUG=693745 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2836293002 Cr-Commit-Position: refs/heads/master@{#473600} Committed: https://chromium.googlesource.com/chromium/src/+/083e943d8ea4952a225355d1a40d945aa1e1c3f6

Patch Set 1 #

Total comments: 6

Patch Set 2 : Handle null sink and fix chromecast build #

Patch Set 3 : Add comment to GetOutputDeviceInfo #

Patch Set 4 : Revise comment #

Total comments: 2

Patch Set 5 : revert preferred_params and add OptimizedForHardwareParameters #

Total comments: 12

Patch Set 6 : Rename to IsOptimizedForHardwareParameters and set some to false #

Total comments: 2

Patch Set 7 : Lock |sink_lock_| before accessing |client_| #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -2 lines) Patch
M chromecast/media/service/cast_mojo_media_client.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M media/audio/audio_output_device.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_output_stream_sink.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_output_stream_sink.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/clockless_audio_sink.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/clockless_audio_sink.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/null_audio_sink.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/null_audio_sink.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/audio_renderer_mixer_input.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/base/audio_renderer_mixer_input.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/fake_audio_renderer_sink.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/base/fake_audio_renderer_sink.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/mock_audio_renderer_sink.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/mock_audio_renderer_sink.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 68 (32 generated)
flim-chromium
Hi Dale, Olka, could you PTAL? Thanks!
3 years, 8 months ago (2017-04-25 12:55:53 UTC) #3
DaleCurtis
lgtm since it was my idea, but would like olka@ to do the final sign ...
3 years, 8 months ago (2017-04-25 16:59:58 UTC) #5
o1ka
https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h File media/base/audio_renderer_sink.h (right): https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 media/base/audio_renderer_sink.h:75: const AudioParameters& preferred_params = AudioParameters()) = 0; I understand ...
3 years, 8 months ago (2017-04-26 14:27:54 UTC) #10
flim-chromium
https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h File media/base/audio_renderer_sink.h (right): https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 media/base/audio_renderer_sink.h:75: const AudioParameters& preferred_params = AudioParameters()) = 0; On 2017/04/26 ...
3 years, 8 months ago (2017-04-26 16:24:09 UTC) #11
o1ka
https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h File media/base/audio_renderer_sink.h (right): https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 media/base/audio_renderer_sink.h:75: const AudioParameters& preferred_params = AudioParameters()) = 0; On 2017/04/26 ...
3 years, 8 months ago (2017-04-26 17:40:29 UTC) #12
DaleCurtis
https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h File media/base/audio_renderer_sink.h (right): https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 media/base/audio_renderer_sink.h:75: const AudioParameters& preferred_params = AudioParameters()) = 0; On 2017/04/26 ...
3 years, 8 months ago (2017-04-26 18:25:59 UTC) #13
flim-chromium
On 2017/04/26 18:25:59, DaleCurtis wrote: > https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h > File media/base/audio_renderer_sink.h (right): > > https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 > ...
3 years, 7 months ago (2017-04-27 12:04:39 UTC) #14
o1ka
On 2017/04/27 12:04:39, flim-chromium wrote: > On 2017/04/26 18:25:59, DaleCurtis wrote: > > > https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h ...
3 years, 7 months ago (2017-04-27 13:09:38 UTC) #15
o1ka
On 2017/04/26 18:25:59, DaleCurtis wrote: > https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h > File media/base/audio_renderer_sink.h (right): > > https://codereview.chromium.org/2836293002/diff/1/media/base/audio_renderer_sink.h#newcode75 > ...
3 years, 7 months ago (2017-04-27 13:13:02 UTC) #16
flim-chromium
On 2017/04/27 13:09:38, o1ka wrote: > On 2017/04/27 12:04:39, flim-chromium wrote: > > On 2017/04/26 ...
3 years, 7 months ago (2017-04-27 14:25:57 UTC) #17
o1ka
On 2017/04/27 14:25:57, flim-chromium wrote: > On 2017/04/27 13:09:38, o1ka wrote: > > On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 17:32:03 UTC) #18
flim-chromium
On 2017/04/27 17:32:03, o1ka wrote: > On 2017/04/27 14:25:57, flim-chromium wrote: > > On 2017/04/27 ...
3 years, 7 months ago (2017-04-27 23:03:30 UTC) #19
DaleCurtis
Should we rename the method GetPreferredDeviceInfo?
3 years, 7 months ago (2017-04-27 23:30:30 UTC) #20
o1ka
On 2017/04/27 23:30:30, DaleCurtis wrote: > Should we rename the method GetPreferredDeviceInfo? It's not really ...
3 years, 7 months ago (2017-04-28 09:50:31 UTC) #21
o1ka
(I referred this issues in the comment above) https://codereview.chromium.org/2836293002/diff/60001/media/base/audio_renderer_sink.h File media/base/audio_renderer_sink.h (right): https://codereview.chromium.org/2836293002/diff/60001/media/base/audio_renderer_sink.h#newcode77 media/base/audio_renderer_sink.h:77: const ...
3 years, 7 months ago (2017-04-28 09:57:19 UTC) #22
o1ka
Another example of a problem with changing GetOutputDeviceInfo meaning: https://cs.chromium.org/chromium/src/media/renderers/audio_renderer_impl.h?type=cs&l=222
3 years, 7 months ago (2017-04-28 10:06:13 UTC) #23
o1ka
WDYT of introducing something like bool ARS::OptimizedForHardwareParameters() // Returns true if a source with HW ...
3 years, 7 months ago (2017-04-28 10:14:58 UTC) #24
DaleCurtis
On 2017/04/28 at 10:14:58, olka wrote: > WDYT of introducing something like > > bool ...
3 years, 7 months ago (2017-04-28 18:29:53 UTC) #25
flim-chromium
On 2017/04/28 18:29:53, DaleCurtis wrote: > On 2017/04/28 at 10:14:58, olka wrote: > > WDYT ...
3 years, 7 months ago (2017-05-01 22:22:11 UTC) #27
DaleCurtis
lgtm % naming https://codereview.chromium.org/2836293002/diff/80001/chromecast/media/service/cast_mojo_media_client.cc File chromecast/media/service/cast_mojo_media_client.cc (right): https://codereview.chromium.org/2836293002/diff/80001/chromecast/media/service/cast_mojo_media_client.cc#newcode45 chromecast/media/service/cast_mojo_media_client.cc:45: bool OptimizedForHardwareParameter() final { Line above ...
3 years, 7 months ago (2017-05-01 22:55:08 UTC) #31
flim-chromium
Thanks for taking a look! I've addressed the comments and also updated the CL subject/description. ...
3 years, 7 months ago (2017-05-15 15:15:57 UTC) #39
o1ka
Looks good, one question on locking: https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc#newcode262 media/blink/webaudiosourceprovider_impl.cc:262: return client_ ? ...
3 years, 7 months ago (2017-05-16 10:31:19 UTC) #44
flim-chromium
https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc File media/blink/webaudiosourceprovider_impl.cc (right): https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc#newcode262 media/blink/webaudiosourceprovider_impl.cc:262: return client_ ? false : true; On 2017/05/16 10:31:19, ...
3 years, 7 months ago (2017-05-16 11:04:05 UTC) #45
o1ka
On 2017/05/16 11:04:05, flim-chromium wrote: > https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc > File media/blink/webaudiosourceprovider_impl.cc (right): > > https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc#newcode262 > ...
3 years, 7 months ago (2017-05-16 14:28:49 UTC) #46
flim-chromium
On 2017/05/16 14:28:49, o1ka wrote: > On 2017/05/16 11:04:05, flim-chromium wrote: > > > https://codereview.chromium.org/2836293002/diff/120001/media/blink/webaudiosourceprovider_impl.cc ...
3 years, 7 months ago (2017-05-16 14:31:49 UTC) #47
o1ka
On 2017/05/16 14:31:49, flim-chromium wrote: > On 2017/05/16 14:28:49, o1ka wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-16 14:50:58 UTC) #48
flim-chromium
On 2017/05/16 14:50:58, o1ka wrote: > On 2017/05/16 14:31:49, flim-chromium wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-16 14:54:38 UTC) #49
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/2836293002/140001
3 years, 7 months ago (2017-05-16 14:55:26 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/438313)
3 years, 7 months ago (2017-05-16 15:09:18 UTC) #54
flim-chromium
+slan for chromecast OWNERS review; could you PTAL?
3 years, 7 months ago (2017-05-16 15:22:28 UTC) #56
flim-chromium
On 2017/05/16 15:22:28, flim-chromium wrote: > +slan for chromecast OWNERS review; could you PTAL? friendly ...
3 years, 7 months ago (2017-05-18 20:17:47 UTC) #57
slan
On 2017/05/18 20:17:47, flim-chromium wrote: > On 2017/05/16 15:22:28, flim-chromium wrote: > > +slan for ...
3 years, 7 months ago (2017-05-18 22:58:00 UTC) #58
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/2836293002/140001
3 years, 7 months ago (2017-05-19 08:49:51 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/431673)
3 years, 7 months ago (2017-05-19 10:58:20 UTC) #62
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/2836293002/160001
3 years, 7 months ago (2017-05-22 15:15:22 UTC) #65
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 16:55:25 UTC) #68
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/083e943d8ea4952a225355d1a40d...

Powered by Google App Engine
This is Rietveld 408576698