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

Unified Diff: ui/gl/gl_image_memory.cc

Issue 2684993005: (NotForReview) Enable YUV video overlay on Skylake ChromeOS.
Patch Set: rebase to ToT (Mar/27) Created 3 years, 9 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_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 43c82014d9076c206e89258b3d0de2ed0d466147..4c187587fc917db4b0d993f40b7f52a5257dc054 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -56,6 +56,7 @@ bool ValidFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
return false;
}
@@ -83,6 +84,7 @@ bool IsCompressedFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return false;
}
@@ -119,6 +121,7 @@ GLenum TextureFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -148,6 +151,7 @@ GLenum DataFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -177,6 +181,7 @@ GLenum DataType(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -206,6 +211,7 @@ GLint DataRowLength(size_t stride, gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -335,6 +341,7 @@ std::unique_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return nullptr;
}
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698