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

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

Issue 2376293003: gpu: support RG_88 GpuMemoryBuffer (Closed)
Patch Set: resolve hubbe's review Created 4 years, 2 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_traits.h
diff --git a/ui/gfx/mojo/buffer_types_traits.h b/ui/gfx/mojo/buffer_types_traits.h
index a533dfec3079cc2105010937b3ea79228540eae8..73e796286991e3656f525dc5583d82669b4d415a 100644
--- a/ui/gfx/mojo/buffer_types_traits.h
+++ b/ui/gfx/mojo/buffer_types_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::RG_88:
+ return gfx::mojom::BufferFormat::RG_88;
case gfx::BufferFormat::BGR_565:
return gfx::mojom::BufferFormat::BGR_565;
case gfx::BufferFormat::RGBA_4444:
@@ -70,6 +72,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::RG_88:
+ *out = gfx::BufferFormat::RG_88;
+ return true;
case gfx::mojom::BufferFormat::BGR_565:
*out = gfx::BufferFormat::BGR_565;
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