Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(641)

Unified Diff: ui/gl/gl_image_memory.cc

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-planes
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..aa308be59d6656e57a256534ded3fa7d2d8d73e3 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;
}
@@ -61,13 +62,14 @@ bool IsCompressedFormat(BufferFormat format) {
case BufferFormat::DXT1:
case BufferFormat::DXT5:
case BufferFormat::ETC1:
- case BufferFormat::YUV_420:
return true;
case BufferFormat::R_8:
case BufferFormat::RGBA_4444:
case BufferFormat::RGBA_8888:
case BufferFormat::BGRA_8888:
case BufferFormat::RGBX_8888:
+ case BufferFormat::YUV_420:
+ case BufferFormat::YUV_420_BIPLANAR:
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;
}
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698