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

Issue 1005303004: media: VideoRenderImpl: display last available frame (Closed)

Created:
5 years, 9 months ago by llandwerlin-old
Modified:
5 years, 9 months ago
Reviewers:
DaleCurtis
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

media: VideoRenderImpl: display last available frame With a few webgl aquarium demo windows open and a 1080p video playing at the same time, you can notice the video dropping a lot frames. From time to time being stuck on a same frame for a second or more. This is due to the VideoRendererImpl dropping frames. It takes too much time for the compositor to paint its content, keeping the GPU busy and delaying decoded video frames too long. Decoded frames arrive too late and are never presented and we stick to an old frame. This changes the behavior of VideoRendererImpl to a best effort strategy where we might start displaying images past their display time, but at least we're not stuck on a same image for too long. BUG=chrome-os-partner:37786 TEST=run the test as explained on the bug Committed: https://crrev.com/f509661231fbb02b6ed35a772622a3d87c26a565 Cr-Commit-Position: refs/heads/master@{#322100}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use std:min(time before next frame, 10ms) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -6 lines) Patch
M media/renderers/video_renderer_impl.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 chunk +15 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
llandwerlin-old
PTAL, Thanks.
5 years, 9 months ago (2015-03-24 15:58:05 UTC) #2
DaleCurtis
I'm in the process of replacing this entire algorithm, but this seems like a small ...
5 years, 9 months ago (2015-03-24 17:25:23 UTC) #3
llandwerlin-old
On 2015/03/24 17:25:23, DaleCurtis wrote: > I'm in the process of replacing this entire algorithm, ...
5 years, 9 months ago (2015-03-24 17:45:01 UTC) #4
DaleCurtis
https://codereview.chromium.org/1005303004/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/1005303004/diff/1/media/renderers/video_renderer_impl.cc#newcode249 media/renderers/video_renderer_impl.cc:249: UpdateStatsAndWait_Locked(target_paint_timestamp - now); On 2015/03/24 17:25:23, DaleCurtis wrote: > ...
5 years, 9 months ago (2015-03-24 17:47:57 UTC) #5
llandwerlin-old
https://codereview.chromium.org/1005303004/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/1005303004/diff/1/media/renderers/video_renderer_impl.cc#newcode249 media/renderers/video_renderer_impl.cc:249: UpdateStatsAndWait_Locked(target_paint_timestamp - now); On 2015/03/24 17:47:57, DaleCurtis wrote: > ...
5 years, 9 months ago (2015-03-24 17:52:01 UTC) #6
DaleCurtis
lgtm
5 years, 9 months ago (2015-03-24 20:30:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1005303004/20001
5 years, 9 months ago (2015-03-24 23:47:14 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-25 00:10:11 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 00:10:47 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f509661231fbb02b6ed35a772622a3d87c26a565
Cr-Commit-Position: refs/heads/master@{#322100}

Powered by Google App Engine
This is Rietveld 408576698