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..1faf4e6f100099724a1dddbd13dcef7ac43f6ebe 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; |
} |
@@ -68,6 +69,7 @@ bool IsCompressedFormat(BufferFormat format) { |
case BufferFormat::RGBA_8888: |
case BufferFormat::BGRA_8888: |
case BufferFormat::RGBX_8888: |
+ case BufferFormat::YUV_420_BIPLANAR: |
reveman
2015/08/11 08:20:08
Can you move BufferFormat::YUV_420 here too while
Andre
2015/08/11 18:15:44
Done.
|
return false; |
} |
@@ -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; |
} |