| Index: ui/gl/gl_image_memory.cc
|
| diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
|
| index f34611851c042ab8a3fdb92ae4df2ce69c882744..0409d6dd704538273b20edc77a12558791f30014 100644
|
| --- a/ui/gl/gl_image_memory.cc
|
| +++ b/ui/gl/gl_image_memory.cc
|
| @@ -47,6 +47,7 @@ bool ValidFormat(BufferFormat format) {
|
| return true;
|
| case BufferFormat::RGBX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| return false;
|
| }
|
|
|
| @@ -62,6 +63,7 @@ bool IsCompressedFormat(BufferFormat format) {
|
| case BufferFormat::DXT5:
|
| case BufferFormat::ETC1:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| return true;
|
| case BufferFormat::R_8:
|
| case BufferFormat::RGBA_4444:
|
| @@ -96,6 +98,7 @@ GLenum TextureFormat(BufferFormat format) {
|
| return GL_BGRA_EXT;
|
| case BufferFormat::RGBX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -123,6 +126,7 @@ GLenum DataType(BufferFormat format) {
|
| case BufferFormat::ETC1:
|
| case BufferFormat::RGBX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -203,6 +207,7 @@ bool GLImageMemory::StrideInBytes(size_t width,
|
| return true;
|
| case BufferFormat::RGBX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| NOTREACHED();
|
| return false;
|
| }
|
|
|