Collect frames into a work queue to simplify the state machine. This
corrects a bug with flushing and will make it easier to implement the
reorder queue.

BUG=133828

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

Cr-Commit-Position: refs/heads/master@{#305098}
3 files changed