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 b488c533cc49c2a3295e48836499f125dc3d2830..6644f910ac6c9ddc34dc7535733a4ccc5e6034f6 100644 |
--- a/ui/gl/gl_image_io_surface.mm |
+++ b/ui/gl/gl_image_io_surface.mm |
@@ -45,6 +45,7 @@ bool ValidFormat(BufferFormat format) { |
case BufferFormat::RGBA_8888: |
case BufferFormat::RGBX_8888: |
case BufferFormat::YUV_420: |
+ case BufferFormat::YUV_420_BIPLANAR: |
return false; |
} |
@@ -55,6 +56,7 @@ bool ValidFormat(BufferFormat format) { |
GLenum TextureFormat(BufferFormat format) { |
switch (format) { |
case BufferFormat::R_8: |
+ case BufferFormat::YUV_420_BIPLANAR: |
reveman
2015/08/11 08:20:08
nit: move below ::YUV_420 as this it not yet valid
Andre
2015/08/11 18:15:44
Done.
|
return GL_RED; |
case BufferFormat::BGRA_8888: |
return GL_RGBA; |
@@ -78,6 +80,7 @@ GLenum TextureFormat(BufferFormat format) { |
GLenum DataFormat(BufferFormat format) { |
switch (format) { |
case BufferFormat::R_8: |
+ case BufferFormat::YUV_420_BIPLANAR: |
reveman
2015/08/11 08:20:08
nit: move below ::YUV_420 as this it not yet valid
Andre
2015/08/11 18:15:44
Done.
|
return GL_RED; |
case BufferFormat::BGRA_8888: |
return GL_BGRA; |
@@ -101,6 +104,7 @@ GLenum DataFormat(BufferFormat format) { |
GLenum DataType(BufferFormat format) { |
switch (format) { |
case BufferFormat::R_8: |
+ case BufferFormat::YUV_420_BIPLANAR: |
reveman
2015/08/11 08:20:08
nit: move below ::YUV_420 as this it not yet valid
Andre
2015/08/11 18:15:44
Done.
|
return GL_UNSIGNED_BYTE; |
case BufferFormat::BGRA_8888: |
return GL_UNSIGNED_INT_8_8_8_8_REV; |