content: Add support for R_8 format to IOSurface backed GpuMemoryBuffers.
commit0e9797682fed4cf13991c2354969319cbfecbbf8
authorreveman <reveman@chromium.org>
Fri, 8 May 2015 19:19:49 +0000 (8 12:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 May 2015 19:20:19 +0000 (8 19:20 +0000)
tree1970067537fa3e0ebac3f85def2f9a81112931ff
parent4cb73d5ca163a925e4b3d632f9f1a72446d25cdd
content: Add support for R_8 format to IOSurface backed GpuMemoryBuffers.

This allows native GpuMemoryBuffers on MacOSX to be used
with R_8 format. R_8 format is useful to store YUV planes
of decoded video frames and native GpuMemoryBuffer support
for this format allows for zero-copy transfer of software
decoded video to the graphics hardware.

BUG=485859
TEST=content_unittests --gtest_filter=GpuMemoryBuffer*/1

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

Cr-Commit-Position: refs/heads/master@{#329007}
content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
ui/gl/gl_image_io_surface.cc
ui/gl/gl_image_io_surface.h