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

Unified Diff: ui/gl/gl_image_ozone_native_pixmap.cc

Issue 1316493004: Add support for converting I420 software frames into NV12 hardware frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snapshot
Patch Set: 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_memory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_ozone_native_pixmap.cc
diff --git a/ui/gl/gl_image_ozone_native_pixmap.cc b/ui/gl/gl_image_ozone_native_pixmap.cc
index 16253c32cb3352107cff629521967bab518459b1..413c0abe460a3fc4f418c674907f0bda6aa958e8 100644
--- a/ui/gl/gl_image_ozone_native_pixmap.cc
+++ b/ui/gl/gl_image_ozone_native_pixmap.cc
@@ -38,6 +38,7 @@ bool ValidFormat(gfx::BufferFormat format) {
case BufferFormat::RGBA_4444:
case BufferFormat::RGBA_8888:
case BufferFormat::YUV_420:
+ case BufferFormat::YUV_420_BIPLANAR:
case BufferFormat::UYVY_422:
return false;
}
@@ -61,6 +62,7 @@ EGLint FourCC(gfx::BufferFormat format) {
case BufferFormat::RGBA_4444:
case BufferFormat::RGBA_8888:
case BufferFormat::YUV_420:
+ case BufferFormat::YUV_420_BIPLANAR:
case BufferFormat::UYVY_422:
NOTREACHED();
return 0;
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698