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

Issue 384943002: Remove media::VideoRenderer::SetPlaybackRate(). (Closed)

Created:
6 years, 5 months ago by scherkus (not reviewing)
Modified:
6 years, 5 months ago
Reviewers:
falken, xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Remove media::VideoRenderer::SetPlaybackRate(). Video renderers don't need the information as they are already making audio/video synchronization decisions based on a media timeline that already incorporates the current playback rate via the time callback. In particular, VideoRendererImpl only used playback rate to estimate a better duration to sleep until the current frame was ready ... except that in most cases we'd sleep for kIdleTimeDelta and wait until the media timeline had progressed past the current frame's timestamp. In other words, there's absolutely no reason to even try to estimate the sleep duration based on the playback rate. BUG=370634 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282797

Patch Set 1 : #

Total comments: 2

Patch Set 2 : tweak display window #

Total comments: 2

Patch Set 3 : use local var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -69 lines) Patch
M media/base/mock_filters.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/base/pipeline.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M media/base/video_renderer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/filters/video_renderer_impl.h View 3 chunks +0 lines, -11 lines 0 comments Download
M media/filters/video_renderer_impl.cc View 1 2 6 chunks +23 lines, -41 lines 0 comments Download
M media/filters/video_renderer_impl_unittest.cc View 3 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
scherkus (not reviewing)
here's another one for you that should make things easier :)
6 years, 5 months ago (2014-07-10 22:29:56 UTC) #1
xhwang
Thanks for making my life easier and easier! One general question, in case of high ...
6 years, 5 months ago (2014-07-10 22:57:56 UTC) #2
scherkus (not reviewing)
On 2014/07/10 22:57:56, xhwang wrote: > Thanks for making my life easier and easier! > ...
6 years, 5 months ago (2014-07-10 23:29:39 UTC) #3
xhwang
That makes sense. Definitely we don't expect to play 30x16 fps video when 16x is ...
6 years, 5 months ago (2014-07-10 23:33:26 UTC) #4
xhwang
Sorry, some extra after-thought question... https://codereview.chromium.org/384943002/diff/20001/media/filters/video_renderer_impl.cc File media/filters/video_renderer_impl.cc (right): https://codereview.chromium.org/384943002/diff/20001/media/filters/video_renderer_impl.cc#newcode240 media/filters/video_renderer_impl.cc:240: remaining_time = std::min(remaining_time, kIdleTimeDelta); ...
6 years, 5 months ago (2014-07-10 23:54:05 UTC) #5
scherkus (not reviewing)
https://codereview.chromium.org/384943002/diff/20001/media/filters/video_renderer_impl.cc File media/filters/video_renderer_impl.cc (right): https://codereview.chromium.org/384943002/diff/20001/media/filters/video_renderer_impl.cc#newcode240 media/filters/video_renderer_impl.cc:240: remaining_time = std::min(remaining_time, kIdleTimeDelta); On 2014/07/10 23:54:05, xhwang wrote: ...
6 years, 5 months ago (2014-07-11 00:01:03 UTC) #6
scherkus (not reviewing)
xhwang: can you take another look? I wrote a manual testing page to test out ...
6 years, 5 months ago (2014-07-11 18:42:52 UTC) #7
xhwang
I like it! lgtm++ https://codereview.chromium.org/384943002/diff/40001/media/filters/video_renderer_impl.cc File media/filters/video_renderer_impl.cc (right): https://codereview.chromium.org/384943002/diff/40001/media/filters/video_renderer_impl.cc#newcode253 media/filters/video_renderer_impl.cc:253: ready_frames_.front()->timestamp() - last_timestamp_; nit: ready_frames_.front()->timestamp() ...
6 years, 5 months ago (2014-07-11 20:49:49 UTC) #8
scherkus (not reviewing)
https://codereview.chromium.org/384943002/diff/40001/media/filters/video_renderer_impl.cc File media/filters/video_renderer_impl.cc (right): https://codereview.chromium.org/384943002/diff/40001/media/filters/video_renderer_impl.cc#newcode253 media/filters/video_renderer_impl.cc:253: ready_frames_.front()->timestamp() - last_timestamp_; On 2014/07/11 20:49:49, xhwang wrote: > ...
6 years, 5 months ago (2014-07-11 20:54:02 UTC) #9
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 5 months ago (2014-07-11 20:54:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/384943002/60001
6 years, 5 months ago (2014-07-11 20:55:59 UTC) #11
commit-bot: I haz the power
Change committed as 282797
6 years, 5 months ago (2014-07-12 04:49:33 UTC) #12
falken
On 2014/07/12 04:49:33, I haz the power (commit-bot) wrote: > Change committed as 282797 I'm ...
6 years, 5 months ago (2014-07-14 02:40:11 UTC) #13
falken
6 years, 5 months ago (2014-07-14 02:46:43 UTC) #14
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/390733002/ by falken@chromium.org.

The reason for reverting is: Sorry to revert this change. It made the following
layout tests flakily fail:
media/track/track-cue-rendering-horizontal.html
media/track/track-cue-rendering-vertical.html

Reverting locally healed the tests.

The image diffs show what appears to be a timestamp change (something like 0:18
to 0:19):
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux__db....

Powered by Google App Engine
This is Rietveld 408576698