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..ce05fe9bc676375243c59d1a60a9a3ba33417e9a 100644 |
--- a/ui/gfx/mojo/buffer_types_struct_traits.h |
+++ b/ui/gfx/mojo/buffer_types_struct_traits.h |
@@ -26,6 +26,8 @@ struct EnumTraits<gfx::mojom::BufferFormat, gfx::BufferFormat> { |
return gfx::mojom::BufferFormat::ETC1; |
case gfx::BufferFormat::R_8: |
return gfx::mojom::BufferFormat::R_8; |
+ case gfx::BufferFormat::R_16: |
+ return gfx::mojom::BufferFormat::R_16; |
case gfx::BufferFormat::RG_88: |
return gfx::mojom::BufferFormat::RG_88; |
case gfx::BufferFormat::BGR_565: |
@@ -74,6 +76,9 @@ struct EnumTraits<gfx::mojom::BufferFormat, gfx::BufferFormat> { |
case gfx::mojom::BufferFormat::R_8: |
*out = gfx::BufferFormat::R_8; |
return true; |
+ case gfx::mojom::BufferFormat::R_16: |
+ *out = gfx::BufferFormat::R_16; |
+ return true; |
case gfx::mojom::BufferFormat::RG_88: |
*out = gfx::BufferFormat::RG_88; |
return true; |