Fix gradual deterioration of cadence based rendering.
commitf0ecec8eb2f9a1b8937d918f233b663ffc26bc01
authordalecurtis <dalecurtis@chromium.org>
Fri, 15 May 2015 00:11:24 +0000 (14 17:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 May 2015 00:11:42 +0000 (15 00:11 +0000)
tree1150128ef8f00ab7e8bc1ab87c100d08c046a90c
parent77a1e8d1c6f0717eb90eb33e06a0419fb669ef7b
Fix gradual deterioration of cadence based rendering.

When a cadence based rendering sequence exceeds drift, we should not
count the over-rendered frame against the next in sequence.  Doing
so causes an accumulation of errors.

Also extends the moving average for durations to 32 values and the
allowable drift to 16.66ms to stabilize the Catzilla 60fps and
Elite: Dangerous 60fps clips, which were hitting hysteresis very
frequently.

BUG=439548
TEST=new unittest.

Review URL: https://codereview.chromium.org/1139973003

Cr-Commit-Position: refs/heads/master@{#329987}
media/filters/video_renderer_algorithm.cc
media/filters/video_renderer_algorithm.h
media/filters/video_renderer_algorithm_unittest.cc