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

Issue 1878783002: Cache effective frame count. Make expired frame count useful. (Closed)

Created:
4 years, 8 months ago by DaleCurtis
Modified:
4 years, 8 months ago
Reviewers:
xhwang
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

Cache effective frame count. Make expired frame count useful. This change affects a few cleanups and API changes in preparation for some underflow in low delay / stalling cases to VideoRendererImpl: - RemoveExpiredFrames() now returns the number of undisplayed frames that have been removed instead of the count of all frames removed. This is consistent with how we count dropped frames in Render(). - EffectiveFramesQueued() is replaced with a hacker_style() accessor to a cached value. This method was being called ~4x as much as the value needs to be computed and an upcoming change will expand this to nearly ~6x w/o clunky manual caching. - EnqueueFrame() now computes an estimate for added frame times, allowing the effective frame count more accuracy immediately after a frame has been added. - Reset() now allows the entire frame queue to be dropped while preserving next frame estimates. This allows decoders which have a limited number of frames to recover from underflow effectively. Otherwise the last frame can be stuck in the queue indefinitely, preventing new frame generation while the decoder is stalled for output space. This will be used in a followup CL. - Re-enables a disabled cadence test on non-debug builds. - s/== base::TimeDelta()/.is_zero()/ for zero tests. - s/.get()// for boolean testing. BUG=569015, 599908 TEST=updated unittests. Committed: https://crrev.com/b1f342180355f130e968574e7271e5d17fe9c783 Cr-Commit-Position: refs/heads/master@{#387213}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clarify comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -135 lines) Patch
M media/filters/video_renderer_algorithm.h View 5 chunks +23 lines, -7 lines 0 comments Download
M media/filters/video_renderer_algorithm.cc View 1 10 chunks +87 lines, -48 lines 0 comments Download
M media/filters/video_renderer_algorithm_unittest.cc View 22 chunks +121 lines, -62 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 5 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
DaleCurtis
4 years, 8 months ago (2016-04-11 20:44:06 UTC) #2
DaleCurtis
The preliminary version of the followup CL can be found here https://codereview.chromium.org/1863373002
4 years, 8 months ago (2016-04-11 20:51:42 UTC) #4
xhwang
LGTM with nits. Sorry for the delay. https://chromiumcodereview.appspot.com/1878783002/diff/1/media/filters/video_renderer_algorithm.cc File media/filters/video_renderer_algorithm.cc (right): https://chromiumcodereview.appspot.com/1878783002/diff/1/media/filters/video_renderer_algorithm.cc#newcode261 media/filters/video_renderer_algorithm.cc:261: // Always ...
4 years, 8 months ago (2016-04-14 00:24:15 UTC) #6
DaleCurtis
Thanks for review! https://codereview.chromium.org/1878783002/diff/1/media/filters/video_renderer_algorithm.cc File media/filters/video_renderer_algorithm.cc (right): https://codereview.chromium.org/1878783002/diff/1/media/filters/video_renderer_algorithm.cc#newcode261 media/filters/video_renderer_algorithm.cc:261: // Always leave at least one ...
4 years, 8 months ago (2016-04-14 00:54:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878783002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878783002/20001
4 years, 8 months ago (2016-04-14 00:54:25 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-14 02:31:06 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 02:32:03 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b1f342180355f130e968574e7271e5d17fe9c783
Cr-Commit-Position: refs/heads/master@{#387213}

Powered by Google App Engine
This is Rietveld 408576698