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

Issue 2533443003: AudioRendererSinkCache: Do not use unhealthy sinks (Closed)

Created:
4 years ago by o1ka
Modified:
4 years ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AudioRendererSinKCache: Do not use unhealthy sinks Cache an unused sink only if it is healthy (has an OK status); Get output parameters only from healthy cached sinks. Note that we still can have used sinks in the cache those become unhealthy. BUG=668250, 663546 Committed: https://crrev.com/3e07bf0ac5733215f2b670b42d4cbf90037ea673 Cr-Commit-Position: refs/heads/master@{#435937}

Patch Set 1 #

Total comments: 11

Patch Set 2 : "review comments addressed" #

Total comments: 6

Patch Set 3 : Dale's comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -71 lines) Patch
M content/renderer/media/audio_renderer_sink_cache_impl.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/audio_renderer_sink_cache_impl.cc View 1 2 7 chunks +49 lines, -69 lines 0 comments Download
M content/renderer/media/audio_renderer_sink_cache_unittest.cc View 1 3 chunks +17 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
o1ka
Could you PTAL?
4 years ago (2016-11-25 13:21:20 UTC) #4
Guido Urdaneta
looks good, I just have a couple of questions. https://codereview.chromium.org/2533443003/diff/1/content/renderer/media/audio_renderer_sink_cache_impl.cc File content/renderer/media/audio_renderer_sink_cache_impl.cc (right): https://codereview.chromium.org/2533443003/diff/1/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode89 content/renderer/media/audio_renderer_sink_cache_impl.cc:89: ...
4 years ago (2016-11-25 22:13:17 UTC) #7
DaleCurtis
Hmm, were we caching unhealthy sinks in the old path? That could be a large ...
4 years ago (2016-11-28 19:00:37 UTC) #9
o1ka
PTAL https://codereview.chromium.org/2533443003/diff/1/content/renderer/media/audio_renderer_sink_cache_impl.cc File content/renderer/media/audio_renderer_sink_cache_impl.cc (right): https://codereview.chromium.org/2533443003/diff/1/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode89 content/renderer/media/audio_renderer_sink_cache_impl.cc:89: scoped_refptr<media::AudioRendererSink> sink(nullptr); On 2016/11/25 22:13:17, Guido Urdaneta wrote: ...
4 years ago (2016-11-30 15:15:04 UTC) #10
o1ka
On 2016/11/28 19:00:37, DaleCurtis wrote: > Hmm, were we caching unhealthy sinks in the old ...
4 years ago (2016-11-30 15:17:16 UTC) #11
DaleCurtis
lgtm https://codereview.chromium.org/2533443003/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/2533443003/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode105 content/renderer/media/audio_renderer_sink_cache_impl.cc:105: } else { Seems you could early return ...
4 years ago (2016-11-30 22:00:05 UTC) #13
o1ka
guidou@ - PTAL? https://codereview.chromium.org/2533443003/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/2533443003/diff/20001/content/renderer/media/audio_renderer_sink_cache_impl.cc#newcode105 content/renderer/media/audio_renderer_sink_cache_impl.cc:105: } else { On 2016/11/30 22:00:05, ...
4 years ago (2016-12-02 12:20:43 UTC) #16
Guido Urdaneta
lgtm
4 years ago (2016-12-02 15:02:29 UTC) #19
Guido Urdaneta
lgtm
4 years ago (2016-12-02 15:02:33 UTC) #20
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/2533443003/40001
4 years ago (2016-12-02 15:16:46 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-02 15:20:46 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-02 15:22:20 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3e07bf0ac5733215f2b670b42d4cbf90037ea673
Cr-Commit-Position: refs/heads/master@{#435937}

Powered by Google App Engine
This is Rietveld 408576698