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

Unified Diff: ui/ozone/platform/drm/common/drm_util.cc

Issue 2636433003: [NotForReview] Enable YUV video overlay on Skylake ChromeOS.
Patch Set: Created 3 years, 11 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/ozone/gl/gl_image_ozone_native_pixmap.cc ('k') | ui/ozone/platform/drm/gpu/drm_overlay_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/common/drm_util.cc
diff --git a/ui/ozone/platform/drm/common/drm_util.cc b/ui/ozone/platform/drm/common/drm_util.cc
index 8deaa6eb1af81e5f2b231cadf30193b5f1e6f5cc..bda09ab96c5e56e42220019ba4f6cfe1c2028399 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -327,6 +327,8 @@ int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format) {
return DRM_FORMAT_RGB565;
case gfx::BufferFormat::UYVY_422:
return DRM_FORMAT_UYVY;
+ case gfx::BufferFormat::YUYV_422:
+ return DRM_FORMAT_YUYV;
case gfx::BufferFormat::YVU_420:
return DRM_FORMAT_YV12;
case gfx::BufferFormat::YUV_420_BIPLANAR:
@@ -378,6 +380,8 @@ int GetFourCCFormatForFramebuffer(gfx::BufferFormat format) {
return DRM_FORMAT_RGB565;
case gfx::BufferFormat::UYVY_422:
return DRM_FORMAT_UYVY;
+ case gfx::BufferFormat::YUYV_422:
+ return DRM_FORMAT_YUYV;
default:
NOTREACHED();
return 0;
« no previous file with comments | « ui/ozone/gl/gl_image_ozone_native_pixmap.cc ('k') | ui/ozone/platform/drm/gpu/drm_overlay_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698