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

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

Issue 2800653003: SurfaceFactoryOzone: expose scanout supported GpuMemoryBufferAttribs
Patch Set: use uint64_t modifiers, get modifiers for primary plane Created 3 years, 8 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 | « no previous file | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h » ('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 59944118ae6d2b7ae45c4049fda153ca3a770bea..628ff627cccd2fe9b4fae70e4e17ef4e131b955a 100644
--- a/ui/ozone/platform/drm/common/drm_util.cc
+++ b/ui/ozone/platform/drm/common/drm_util.cc
@@ -411,7 +411,8 @@ gfx::BufferFormat GetBufferFormatFromFourCCFormat(int format) {
case DRM_FORMAT_YVU420:
return gfx::BufferFormat::YVU_420;
default:
- NOTREACHED();
+ // TODO(varad): need more gfx::BufferFormat tokens to handle the
+ // fourcc <-> gfx::BufferFormat namespace conversions accurately
return gfx::BufferFormat::BGRA_8888;
}
}
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698