| Index: ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
|
| diff --git a/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc b/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
|
| index 6199e36f11a432930ad3987441a5b8425c805770..fef04a8d3b9397ecc6a1e700ef612e77b8283a1e 100644
|
| --- a/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
|
| +++ b/ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc
|
| @@ -53,10 +53,12 @@ class ClientNativePixmapFactoryGbm : public ClientNativePixmapFactory {
|
| format == gfx::BufferFormat::RGBX_8888 ||
|
| format == gfx::BufferFormat::BGRA_8888 ||
|
| format == gfx::BufferFormat::BGRX_8888 ||
|
| - format == gfx::BufferFormat::YVU_420;
|
| + format == gfx::BufferFormat::YVU_420 ||
|
| + format == gfx::BufferFormat::YUYV_422;
|
| case gfx::BufferUsage::SCANOUT:
|
| return format == gfx::BufferFormat::BGRX_8888 ||
|
| - format == gfx::BufferFormat::RGBX_8888;
|
| + format == gfx::BufferFormat::RGBX_8888 ||
|
| + format == gfx::BufferFormat::YUYV_422;
|
| case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE:
|
| case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT: {
|
| #if defined(OS_CHROMEOS)
|
| @@ -66,6 +68,7 @@ class ClientNativePixmapFactoryGbm : 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
|
|
|