Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc

Issue 2648633005: cros: Support YUYV format for GPU memory buffer video frames
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698