| Index: ui/gl/gl_image_memory.cc
|
| diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
|
| index e5160a6cbec3c4e5e59e43018b36d431209ac0c7..6e04a36e02f1d53fbe3008ef7fa38659b864c659 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::BGRX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| case BufferFormat::UYVY_422:
|
| return false;
|
| }
|
| @@ -69,6 +70,7 @@ bool IsCompressedFormat(BufferFormat format) {
|
| case BufferFormat::BGRA_8888:
|
| case BufferFormat::BGRX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| case BufferFormat::UYVY_422:
|
| return false;
|
| }
|
| @@ -98,6 +100,7 @@ GLenum TextureFormat(BufferFormat format) {
|
| return GL_BGRA_EXT;
|
| case BufferFormat::BGRX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| case BufferFormat::UYVY_422:
|
| NOTREACHED();
|
| return 0;
|
| @@ -126,6 +129,7 @@ GLenum DataType(BufferFormat format) {
|
| case BufferFormat::ETC1:
|
| case BufferFormat::BGRX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| case BufferFormat::UYVY_422:
|
| NOTREACHED();
|
| return 0;
|
| @@ -207,6 +211,7 @@ bool GLImageMemory::StrideInBytes(size_t width,
|
| return true;
|
| case BufferFormat::BGRX_8888:
|
| case BufferFormat::YUV_420:
|
| + case BufferFormat::YUV_420_BIPLANAR:
|
| case BufferFormat::UYVY_422:
|
| NOTREACHED();
|
| return false;
|
|
|