ozone: Add import support for NV12 native pixmap

Desktop / Chromium - dcastagna [chromium.org] - 4 November 2016 17:22 EDT

Chromium can now create, map and import multi-planar pixmaps. This CL adds support for NV12 in native pixmap and adds a test that creates, imports, binds and draws with a NV12 gbm buffer.

BUG=b/31159410 TEST=ozone_gl_unittests --gtest_also_run_disabled_tests --gtest_filter="*3.BindTexImage" on kevin

Review-Url: https://codereview.chromium.org/2451283003 Cr-Commit-Position: refs/heads/master@{#430036}

3ea2b75 ozone: Add import support for NV12 native pixmap.
ui/ozone/gl/gl_image_ozone_native_pixmap.cc | 3 ++-
.../gl/gl_image_ozone_native_pixmap_unittest.cc | 5 ++++-
ui/ozone/platform/drm/common/drm_util.cc | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)

Upstream: git.chromium.org

  • Share