Mac: teach GpuMemoryBufferVideoFramePool to handle XR30
This CL teaches GpuMemoryBufferVideoFramePool to handle XR30 formats, when context capabilities' image_xr30 is enabled and the incoming data is of 10 bit per component type. This CL also enables the necessary checks in the gles2 and GpuMemoryBuffer support to recongnise this format in Mac only (other platforms coming soon). Test with high bit depth videos e.g.: 'http://crosvideo.appspot.com?codec=vp9.2&loop=true' and media/test/data/... - bear-320x180-hi10p-vp9.webm - bear-320x180-hi10p.mp4 (this is an H.264 part 10, 10bpc) - blackwhite_yuv420p_hi10p.mp4 - bear-320x180-hi12p-vp9.webm Also covered in e.g. content_browsertests' MediaColorTest.Yuv420pHighBitDepth which would fail if the colors were inverted. Bug: 797347 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I8e73a7558d5506875d1547983d4e5e796a543aeb Reviewed-on: https://chromium-review.googlesource.com/862326Reviewed-by:Daniele Castagna <dcastagna@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Antoine Labour <piman@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#531293}
Showing
Please register or sign in to comment