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

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: Fixes for reveman 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698