media: Make GMBVP frame delivery in order
GpuMemoryBufferVideoFramePool was initially used by VideoRendererImpl, and it assumed at most one copy at a time would be requested. If a new copy was requested before the previous one finished, there was no guarantee that the frame ready callback would be called in the same order as the copy request. crrev.com/947383 moved the copy to GMB, and the pool, in an earlier stage of video playback. Now more than on copy could be requested, and the pool might deliver videoframes out of order. This patch adds the guarantee that GMBVP will deliver frames in the same orders the copy were requested. Bug: 819635 Change-Id: Ic8fd5e95bcda59c836e6be65eaa3891ace0b1aa7 Reviewed-on: https://chromium-review.googlesource.com/955912 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#542254}
Showing
Please register or sign in to comment