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

Unified Diff: ui/ozone/platform/drm/gpu/drm_overlay_validator.cc

Issue 2648633005: cros: Support YUYV format for GPU memory buffer video frames
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
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 34c62c17e52a87f8c8c5eb6c74d877c7f5737db9..eaf7d1ff60ebf49b2b77de27d98e15152178ca2f 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;
@@ -87,8 +88,8 @@ uint32_t FindOptimalBufferFormat(uint32_t original_format,
return DRM_FORMAT_XRGB8888;
// 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;
}
« gpu/ipc/common/gpu_memory_buffer_support.cc ('K') | « ui/ozone/platform/drm/common/drm_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698