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

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

Issue 2533163002: ozone: Create GbmBuffers from fourcc formats and gbm flags. (Closed)
Patch Set: Address dnicoara's comments. 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
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(),

Powered by Google App Engine
This is Rietveld 408576698