Index: ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc |
diff --git a/ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc b/ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc |
index a91e50645fe50e971e647879c5ce6afb75296879..c8d2372608431780fc63dad1dcb789ae3e115a40 100644 |
--- a/ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc |
+++ b/ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc |
@@ -59,6 +59,11 @@ class ClientNativePixmapFactoryDmabuf : public ClientNativePixmapFactory { |
format == gfx::BufferFormat::RGBX_8888 || |
format == gfx::BufferFormat::BGRA_8888 || |
format == gfx::BufferFormat::BGRX_8888 || |
+#if defined(ARCH_CPU_X86_FAMILY) |
+ // Currently only Intel driver (i.e. minigbm and Mesa) supports |
+ // YUYV_422. crbug.com/683347 |
+ format == gfx::BufferFormat::YUYV_422 || |
+#endif |
format == gfx::BufferFormat::YVU_420; |
case gfx::BufferUsage::SCANOUT: |
return format == gfx::BufferFormat::BGRX_8888 || |
@@ -77,6 +82,7 @@ class ClientNativePixmapFactoryDmabuf : public ClientNativePixmapFactory { |
// and RG_88. crbug.com/356871 |
format == gfx::BufferFormat::R_8 || |
format == gfx::BufferFormat::RG_88 || |
+ format == gfx::BufferFormat::YUYV_422 || |
#endif |
format == gfx::BufferFormat::BGRA_8888; |
#else |