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

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

Issue 2920793005: gpu: support R16 GPUMemoryBuffer (Closed)
Patch Set: Add bug number to TODO. Created 3 years, 6 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..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;
« 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