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

Issue 2072843002: Freeze media time and audio rendering when the system suspends. (Closed)

Created:
4 years, 6 months ago by DaleCurtis
Modified:
4 years, 6 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Freeze media time and audio rendering when the system suspends. Allows us to avoid unexpected differences between what the audio renderer and video renderer think the current time is. Causes the wall clock time calculations to return false for "is time moving." With this information the video renderer (and other callers) can accurately act upon frozen moments and not expire frames due to a difference of opinion on what the current time is (audio only updates its base every Render() call). BUG=620478 TEST=new unittests Committed: https://crrev.com/e3fb958aa538c5b146afea7f9df498a579d3e5a4 Cr-Commit-Position: refs/heads/master@{#400454}

Patch Set 1 #

Patch Set 2 : Add observer on |task_runner_|. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -2 lines) Patch
M media/renderers/audio_renderer_impl.h View 4 chunks +10 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 5 chunks +36 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 2 chunks +37 lines, -0 lines 1 comment Download

Messages

Total messages: 40 (16 generated)
DaleCurtis
4 years, 6 months ago (2016-06-16 19:37:32 UTC) #4
DaleCurtis
xhwang@ is out for GoogleServe, so +sandersd@ for review.
4 years, 6 months ago (2016-06-16 19:38:15 UTC) #6
sandersd (OOO until July 31)
lgtm
4 years, 6 months ago (2016-06-16 19:46:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2072843002/20001
4 years, 6 months ago (2016-06-16 20:22:07 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/247783)
4 years, 6 months ago (2016-06-16 22:06:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2072843002/20001
4 years, 6 months ago (2016-06-16 22:13:39 UTC) #13
xhwang
nice, LGTM I am gonna test this on Netflix as well.
4 years, 6 months ago (2016-06-16 22:16:38 UTC) #14
DaleCurtis
Hmm, looks like this is breaking WebGL conformance tests somehow... will take a closer look.
4 years, 6 months ago (2016-06-16 23:24:16 UTC) #15
DaleCurtis
Hmm, I can't repro any failures locally with the conformance tests on my mac. +kbr: ...
4 years, 6 months ago (2016-06-16 23:40:38 UTC) #17
xhwang
On 2016/06/16 23:40:38, DaleCurtis wrote: > Hmm, I can't repro any failures locally with the ...
4 years, 6 months ago (2016-06-16 23:43:15 UTC) #18
DaleCurtis
I don't think video-only can suffer from the same problems, but I'll be sure to ...
4 years, 6 months ago (2016-06-16 23:44:35 UTC) #19
Ken Russell (switch to Gerrit)
On 2016/06/16 23:40:38, DaleCurtis wrote: > Hmm, I can't repro any failures locally with the ...
4 years, 6 months ago (2016-06-16 23:54:49 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/245710)
4 years, 6 months ago (2016-06-16 23:59:34 UTC) #22
DaleCurtis
No, I didn't see those in the logs, thanks for pointing them out. Even after ...
4 years, 6 months ago (2016-06-17 00:13:35 UTC) #23
Ken Russell (switch to Gerrit)
On 2016/06/17 00:13:35, DaleCurtis wrote: > No, I didn't see those in the logs, thanks ...
4 years, 6 months ago (2016-06-17 00:17:22 UTC) #24
DaleCurtis
I did the same one with a different test, but didn't pull that crash up. ...
4 years, 6 months ago (2016-06-17 00:20:48 UTC) #26
DaleCurtis
Issue was adding the observer on the render thread while removing it on the media ...
4 years, 6 months ago (2016-06-17 01:21:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2072843002/40001
4 years, 6 months ago (2016-06-17 01:22:50 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/154387)
4 years, 6 months ago (2016-06-17 01:37:14 UTC) #33
xhwang
OOC, did you test the video-only case? https://chromiumcodereview.appspot.com/2072843002/diff/40001/media/renderers/audio_renderer_impl_unittest.cc File media/renderers/audio_renderer_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/2072843002/diff/40001/media/renderers/audio_renderer_impl_unittest.cc#newcode765 media/renderers/audio_renderer_impl_unittest.cc:765: renderer_->OnSuspend(); Can ...
4 years, 6 months ago (2016-06-17 07:12:52 UTC) #34
DaleCurtis
Did you ever see the video only case hang? I could not reproduce issues. I ...
4 years, 6 months ago (2016-06-17 16:41:52 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2072843002/40001
4 years, 6 months ago (2016-06-17 17:48:15 UTC) #37
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 6 months ago (2016-06-17 18:03:35 UTC) #38
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 18:04:58 UTC) #40
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e3fb958aa538c5b146afea7f9df498a579d3e5a4
Cr-Commit-Position: refs/heads/master@{#400454}

Powered by Google App Engine
This is Rietveld 408576698