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

Issue 596073002: Allow better AudioRendererMixer reuse by ignoring irrelevant params. (Closed)

Created:
6 years, 3 months ago by DaleCurtis
Modified:
6 years, 3 months ago
Reviewers:
xhwang
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow better AudioRendererMixer reuse by ignoring irrelevant params. Several AudioParameters fields are irrelevant when converting from one type to another via AudioRendererMixer. Not ignoring these values results in expensive extra renderer side resampling load and extra physical stream creation. Physical stream creation has a long tail of additional overhead (multiple threads, shared memory, etc). AudioRendererMixerManager will now ignore these irrelevant params when determining whether it should reuse an existing mixer. BUG=none TEST=new unittest. Committed: https://crrev.com/cee23788475df08e55797adfb4222192cff882ff Cr-Commit-Position: refs/heads/master@{#296304}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -7 lines) Patch
M content/renderer/media/audio_renderer_mixer_manager.h View 1 2 chunks +22 lines, -2 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager_unittest.cc View 5 chunks +52 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
DaleCurtis
xhwang: You're looking into the many complexities of our rendering pipeline, so here's a CL ...
6 years, 3 months ago (2014-09-23 20:17:12 UTC) #2
xhwang
lgtm % nits https://codereview.chromium.org/596073002/diff/1/content/renderer/media/audio_renderer_mixer_manager.h File content/renderer/media/audio_renderer_mixer_manager.h (right): https://codereview.chromium.org/596073002/diff/1/content/renderer/media/audio_renderer_mixer_manager.h#newcode72 content/renderer/media/audio_renderer_mixer_manager.h:72: typedef std::pair<int, media::AudioParameters> MixerKey; nit: comment ...
6 years, 3 months ago (2014-09-23 21:14:04 UTC) #3
DaleCurtis
Thanks for review! https://codereview.chromium.org/596073002/diff/1/content/renderer/media/audio_renderer_mixer_manager.h File content/renderer/media/audio_renderer_mixer_manager.h (right): https://codereview.chromium.org/596073002/diff/1/content/renderer/media/audio_renderer_mixer_manager.h#newcode72 content/renderer/media/audio_renderer_mixer_manager.h:72: typedef std::pair<int, media::AudioParameters> MixerKey; On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 21:17:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596073002/20001
6 years, 3 months ago (2014-09-23 21:22:01 UTC) #6
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-23 23:26:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596073002/20001
6 years, 3 months ago (2014-09-23 23:29:28 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as f41cc4addc3349d0858841bc8bb8472a7802f732
6 years, 3 months ago (2014-09-23 23:46:27 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 23:47:05 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cee23788475df08e55797adfb4222192cff882ff
Cr-Commit-Position: refs/heads/master@{#296304}

Powered by Google App Engine
This is Rietveld 408576698