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

Issue 298253004: Don't background processes with active audio output. (Closed)

Created:
6 years, 7 months ago by DaleCurtis
Modified:
6 years, 6 months ago
CC:
chromium-reviews, creis+watch_chromium.org, fischman+watch_chromium.org, nasko+codewatch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Don't background processes with active audio output. If a process is actively rendering audio, it should not be put into the background state. "Active" is determined by having any stream in the playing state as considered by AudioRendererHost. When a tab has active audio, it's already being woken up ~ every 10-20ms, so I expect the power impact of this change to be negligible. This should reduce glitching under load. BUG=362294 TEST=Ensure Windows playback under load no longer glitches. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274020

Patch Set 1 : Add comment. #

Total comments: 4

Patch Set 2 : Comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 7 chunks +23 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
DaleCurtis
luken: General review (per cpu@). jam: content/ approval.
6 years, 6 months ago (2014-05-28 23:00:31 UTC) #1
DaleCurtis
Whoops, scherkus for media/ review. Note: This CL should only be landed with https://codereview.chromium.org/305533006/
6 years, 6 months ago (2014-05-28 23:01:19 UTC) #2
DaleCurtis
+scherkus for real this time.
6 years, 6 months ago (2014-05-28 23:01:32 UTC) #3
scherkus (not reviewing)
what happens when audio starts playing on a already-backgrounded process? https://codereview.chromium.org/298253004/diff/20001/content/browser/renderer_host/media/audio_renderer_host.h File content/browser/renderer_host/media/audio_renderer_host.h (right): https://codereview.chromium.org/298253004/diff/20001/content/browser/renderer_host/media/audio_renderer_host.h#newcode173 ...
6 years, 6 months ago (2014-05-29 02:24:42 UTC) #4
jam
lgtm https://codereview.chromium.org/298253004/diff/20001/content/browser/renderer_host/media/audio_renderer_host.h File content/browser/renderer_host/media/audio_renderer_host.h (right): https://codereview.chromium.org/298253004/diff/20001/content/browser/renderer_host/media/audio_renderer_host.h#newcode88 content/browser/renderer_host/media/audio_renderer_host.h:88: // Returns true if any streams managed by ...
6 years, 6 months ago (2014-05-29 17:31:19 UTC) #5
DaleCurtis
Audio started in the background is no worse off than today without my Window's "background ...
6 years, 6 months ago (2014-05-29 18:57:13 UTC) #6
scherkus (not reviewing)
lgtm
6 years, 6 months ago (2014-05-29 21:49:27 UTC) #7
luken
lgtm
6 years, 6 months ago (2014-05-30 17:57:04 UTC) #8
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 6 months ago (2014-05-30 17:59:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/298253004/30001
6 years, 6 months ago (2014-05-30 18:00:43 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 00:09:30 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 01:55:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/158526)
6 years, 6 months ago (2014-05-31 01:55:59 UTC) #13
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 6 months ago (2014-05-31 03:13:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/298253004/30001
6 years, 6 months ago (2014-05-31 03:14:31 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 04:37:20 UTC) #16
Message was sent while issue was closed.
Change committed as 274020

Powered by Google App Engine
This is Rietveld 408576698