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; |
} |