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

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

Issue 2562903002: ozone: add NV12 to GetBufferFormatFromFourCCFormat (Closed)
Patch Set: Created 4 years 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 | « no previous file | 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 d7036823a4d8005fe8b8c9122019cd8b027e431c..1de26fd7aefa35f4ad20ed42f33f7f55404f7bf5 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -375,6 +375,8 @@ gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format) {
return gfx::BufferFormat::BGR_565;
case DRM_FORMAT_UYVY:
return gfx::BufferFormat::UYVY_422;
+ case DRM_FORMAT_NV12:
+ return gfx::BufferFormat::YUV_420_BIPLANAR;
case DRM_FORMAT_YV12:
return gfx::BufferFormat::YVU_420;
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698