Index: ui/ozone/platform/drm/gpu/screen_manager.cc |
diff --git a/ui/ozone/platform/drm/gpu/screen_manager.cc b/ui/ozone/platform/drm/gpu/screen_manager.cc |
index 3a8f6fe9ae0e91229b119086d0043e9021bb82e2..18f36feff5f00f294b5e37f8e503ee2ab7f96218 100644 |
--- a/ui/ozone/platform/drm/gpu/screen_manager.cc |
+++ b/ui/ozone/platform/drm/gpu/screen_manager.cc |
@@ -344,8 +344,9 @@ OverlayPlane ScreenManager::GetModesetBuffer( |
gfx::BufferFormat format = ui::DisplaySnapshot::PrimaryFormat(); |
scoped_refptr<DrmDevice> drm = controller->GetAllocationDrmDevice(); |
+ uint32_t fourcc_format = ui::GetFourCCFormatForFramebuffer(format); |
scoped_refptr<ScanoutBuffer> buffer = |
- buffer_generator_->Create(drm, format, bounds.size()); |
+ buffer_generator_->Create(drm, fourcc_format, bounds.size()); |
if (!buffer) { |
LOG(ERROR) << "Failed to create scanout buffer"; |
return OverlayPlane(nullptr, 0, gfx::OVERLAY_TRANSFORM_INVALID, gfx::Rect(), |