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

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

Issue 2689453002: Introduce gfx::BufferFormat::YUYV_422
Patch Set: rebase to ToT Created 3 years, 7 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
« no previous file with comments | « ui/gfx/mojo/buffer_types.mojom ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/buffer_types_struct_traits.h
diff --git a/ui/gfx/mojo/buffer_types_struct_traits.h b/ui/gfx/mojo/buffer_types_struct_traits.h
index ad25a17c8ae6ff539d5d58a82815ea1f61c5e1ba..4b6f3df1d99566c5e7fe5f5008773794864cbe4c 100644
--- a/ui/gfx/mojo/buffer_types_struct_traits.h
+++ b/ui/gfx/mojo/buffer_types_struct_traits.h
@@ -48,6 +48,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;
@@ -106,6 +108,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;
« no previous file with comments | « ui/gfx/mojo/buffer_types.mojom ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698