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

Unified Diff: ui/ozone/platform/drm/gpu/drm_overlay_validator.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
Index: ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc b/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
index bfe65bbbdc9d2f5decc9dabf53451d736471da44..035b872db011fb2af94d90074451f8d5d46ede09 100644
--- a/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
+++ b/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
@@ -23,6 +23,7 @@ bool NeedsAlphaComposition(uint32_t format) {
switch (format) {
case DRM_FORMAT_XRGB8888:
case DRM_FORMAT_UYVY:
+ case DRM_FORMAT_YUYV:
return false;
default:
return true;
@@ -78,8 +79,8 @@ uint32_t FindOptimalBufferFormat(uint32_t original_format,
}
// YUV is preferable format if supported.
- if (controller->IsFormatSupported(DRM_FORMAT_UYVY, z_order)) {
- return DRM_FORMAT_UYVY;
+ if (controller->IsFormatSupported(DRM_FORMAT_YUYV, z_order)) {
+ return DRM_FORMAT_YUYV;
} else if (controller->IsFormatSupported(DRM_FORMAT_XRGB8888, z_order)) {
return DRM_FORMAT_XRGB8888;
}
« no previous file with comments | « ui/ozone/platform/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698