Fix android.media.cts.AdaptivePlaybackTest#test(H264/VP8/VP9)_adaptiveDrcEarlyEos
ProvidePictureBuffers() triggers AssignPictureBuffers() and ImportPictureBuffers() in this order. The size of an imported picture in ImportPictureBuffers() is updated in ProvidePictureBuffers(). However, ImportPictureBuffers() can be called between ProvidePictureBuffers() and ImportPictureBuffers(), when a client already queues ImportPictureBuffers() for old imported pictures. In this case, the size of an picture imported by ImportPictureBuffers is different from one updated in ProvidePictureBuffers. Therefore, verifyDmaBbuf() is failed. To resolve this problem, an imported picture size is updated in AssignPictureBuffers(), not ProvidePictureBuffers(). TEST=CtsMediaTestCases on minnie and eve BUG=b:70767025 Change-Id: I6451a0c9d86b21010fc72071f6d5a3e45dee590f Reviewed-on: https://chromium-review.googlesource.com/831324Reviewed-by:Kuang-che Wu <kcwu@chromium.org> Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Cr-Commit-Position: refs/heads/master@{#524672}
Showing
Please register or sign in to comment