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

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

Issue 2689453002: Introduce gfx::BufferFormat::YUYV_422
Patch Set: rebase to ToT Created 3 years, 7 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/test/gl_image_test_support.cc ('k') | no next file » | 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 48978e82a82d1a68588cf0c7bb75188137d53249..59a80e9471b78c270daf52aebdad508ae61d2fb7 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -403,6 +403,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_YVU420;
case gfx::BufferFormat::YUV_420_BIPLANAR:
@@ -431,6 +433,8 @@ gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format) {
return gfx::BufferFormat::BGR_565;
case DRM_FORMAT_UYVY:
return gfx::BufferFormat::UYVY_422;
+ case DRM_FORMAT_YUYV:
+ return gfx::BufferFormat::YUYV_422;
case DRM_FORMAT_NV12:
return gfx::BufferFormat::YUV_420_BIPLANAR;
case DRM_FORMAT_YVU420:
@@ -460,6 +464,8 @@ int GetFourCCFormatForOpaqueFramebuffer(gfx::BufferFormat format) {
return DRM_FORMAT_NV12;
case gfx::BufferFormat::YVU_420:
return DRM_FORMAT_YVU420;
+ case gfx::BufferFormat::YUYV_422:
+ return DRM_FORMAT_YUYV;
default:
NOTREACHED();
return 0;
« no previous file with comments | « ui/gl/test/gl_image_test_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698