Fix frame expiry with cadence based rendering.
commit3e75e1da3c304ed9c9855e37b71104c25a7d3f6c
authordalecurtis <dalecurtis@chromium.org>
Tue, 5 May 2015 00:15:43 +0000 (4 17:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 00:16:59 +0000 (5 00:16 +0000)
treed6aabeef89c2a6a6232096c77eeef600e0696a9e
parent8d1b3acf1fca81d469a3420f6fc8456a6fe51d3f
Fix frame expiry with cadence based rendering.

Cadence based rendering never expired the last frame based on
calls to RemoveExpiredFrames.  Fixed and removed repeated calc
of end time everywhere in favor of stored calculation.

BUG=439548
TEST=modified tests.

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

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