media/gpu: Set timestamp at VaapiVD and V4L2SVD correctly.
Originally we assume that VD::CreateSurface() will be called after AVD::SetStream() is called, and the returned surface is used for the current bitstream buffer. However, the description of AVD doesn't guarantee this fact. This CL changes to set the timestamp that is mapped from bitstream id passed from SurfaceReady(). This timestamp is actually reliable value. BUG=b:140842667 TEST=run video_decode_accelerator_tests on Kevin and Eve Change-Id: I255870c6220a4bd771e1f23b54c309fe8ca42246 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1810452Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Chih-Yu Huang <akahuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#699204}
Showing
Please register or sign in to comment