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

Unified Diff: ui/gl/gl_image_io_surface.mm

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_struct_traits.h ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_io_surface.mm
diff --git a/ui/gl/gl_image_io_surface.mm b/ui/gl/gl_image_io_surface.mm
index fc4df49f478ff007cbbfd681ce8c63cd8493582d..c619e63495d43d27b97df2a6bb7e8725804ce174 100644
--- a/ui/gl/gl_image_io_surface.mm
+++ b/ui/gl/gl_image_io_surface.mm
@@ -64,6 +64,7 @@ bool ValidFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::RGBA_4444:
case gfx::BufferFormat::RGBX_8888:
case gfx::BufferFormat::YVU_420:
+ case gfx::BufferFormat::YUYV_422:
return false;
}
@@ -95,6 +96,7 @@ GLenum TextureFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::RGBA_4444:
case gfx::BufferFormat::RGBX_8888:
case gfx::BufferFormat::YVU_420:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -127,6 +129,7 @@ GLenum DataFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::RGBX_8888:
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -159,6 +162,7 @@ GLenum DataType(gfx::BufferFormat format) {
case gfx::BufferFormat::RGBX_8888:
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
« no previous file with comments | « ui/gfx/mojo/buffer_types_struct_traits.h ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698