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

Unified Diff: ui/gfx/mojo/buffer_types_traits.h

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/gfx/mojo/buffer_types_traits.h
diff --git a/ui/gfx/mojo/buffer_types_traits.h b/ui/gfx/mojo/buffer_types_traits.h
index 086b27deb9078a69729df9448ec936916c2c4ec8..9fcc05763ab827c189e53433c7d5edf7d18eb5a7 100644
--- a/ui/gfx/mojo/buffer_types_traits.h
+++ b/ui/gfx/mojo/buffer_types_traits.h
@@ -46,6 +46,8 @@ struct EnumTraits<gfx::mojom::BufferFormat, gfx::BufferFormat> {
return gfx::mojom::BufferFormat::YUV_420_BIPLANAR;
case gfx::BufferFormat::UYVY_422:
return gfx::mojom::BufferFormat::UYVY_422;
+ case gfx::BufferFormat::YUYV_422:
+ return gfx::mojom::BufferFormat::YUYV_422;
}
NOTREACHED();
return gfx::mojom::BufferFormat::LAST;
@@ -101,6 +103,10 @@ struct EnumTraits<gfx::mojom::BufferFormat, gfx::BufferFormat> {
return true;
case gfx::mojom::BufferFormat::UYVY_422:
*out = gfx::BufferFormat::UYVY_422;
+ return true;
+ case gfx::mojom::BufferFormat::YUYV_422:
+ *out = gfx::BufferFormat::YUYV_422;
+ return true;
}
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698