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

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

Issue 2122573003: media: replace LUMINANCE_F16 by RG_88 for 9/10-bit h264 videos Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: introduce --disable-half-float-conversion-texture flag Created 4 years, 3 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 175a493be12773aecf0b6a5afb2b6dfbfe28b182..1f9b15fc89fc1d0f62211c0f0c9d35e4d43e1922 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;

Powered by Google App Engine
This is Rietveld 408576698