| Index: ui/gl/gl_image_memory.cc
|
| diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
|
| index 8fda636947250b0f12fd7c7602f628d38bf60bf3..6b3fde0aa69661dbe65877de0da2d7bfc653da06 100644
|
| --- a/ui/gl/gl_image_memory.cc
|
| +++ b/ui/gl/gl_image_memory.cc
|
| @@ -56,6 +56,7 @@ bool ValidFormat(gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| return false;
|
| }
|
|
|
| @@ -83,6 +84,7 @@ bool IsCompressedFormat(gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return false;
|
| }
|
| @@ -119,6 +121,7 @@ GLenum TextureFormat(gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -148,6 +151,7 @@ GLenum DataFormat(gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -177,6 +181,7 @@ GLenum DataType(gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -206,6 +211,7 @@ GLint DataRowLength(size_t stride, gfx::BufferFormat format) {
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -335,6 +341,7 @@ std::unique_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
|
| case gfx::BufferFormat::YVU_420:
|
| case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| case gfx::BufferFormat::UYVY_422:
|
| + case gfx::BufferFormat::YUYV_422:
|
| NOTREACHED();
|
| return nullptr;
|
| }
|
|
|