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

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

Issue 2627973006: ozone: Create GbmBuffers from fourcc formats and gbm flags. (Closed)
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
« no previous file with comments | « ui/ozone/platform/drm/gpu/scanout_buffer.h ('k') | ui/ozone/platform/drm/gpu/screen_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « ui/ozone/platform/drm/gpu/scanout_buffer.h ('k') | ui/ozone/platform/drm/gpu/screen_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698