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

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

Issue 2623963002: ozone: Allocate scanout buffers according to KMS modifiers. (Closed)
Patch Set: Remove unused modifier_. 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/mock_drm_device.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc
diff --git a/ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc b/ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc
index 179e6f9bf8994e03b47f945226dfe8c8e27ac86d..409ac445565a88d58b3c51448ed64cf408d00953 100644
--- a/ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc
+++ b/ui/ozone/platform/drm/gpu/mock_hardware_display_plane_manager.cc
@@ -25,6 +25,7 @@ MockHardwareDisplayPlaneManager::MockHardwareDisplayPlaneManager(
std::unique_ptr<HardwareDisplayPlane> plane(
new HardwareDisplayPlane(kPlaneBaseId + i, 1 << crtc_idx));
plane->Initialize(drm, std::vector<uint32_t>(1, DRM_FORMAT_XRGB8888),
+ std::vector<drm_format_modifier>(), // modifiers
false, true);
planes_.push_back(std::move(plane));
}
@@ -54,7 +55,9 @@ void MockHardwareDisplayPlaneManager::InitForTest(
for (size_t i = 0; i < count; i++) {
std::unique_ptr<HardwareDisplayPlane> plane(
new HardwareDisplayPlane(planes[i].id, planes[i].allowed_crtc_mask));
- plane->Initialize(drm_, planes[i].allowed_formats, false, true);
+ plane->Initialize(drm_, planes[i].allowed_formats,
+ std::vector<drm_format_modifier>(), // modifiers
+ false, true);
planes_.push_back(std::move(plane));
}
// The real HDPM uses sorted planes, so sort them for consistency.
@@ -72,7 +75,9 @@ void MockHardwareDisplayPlaneManager::SetPlaneProperties(
for (size_t i = 0; i < count; i++) {
std::unique_ptr<HardwareDisplayPlane> plane(
new HardwareDisplayPlane(planes[i].id, planes[i].allowed_crtc_mask));
- plane->Initialize(drm_, planes[i].allowed_formats, false, true);
+ plane->Initialize(drm_, planes[i].allowed_formats,
+ std::vector<drm_format_modifier>(), // modifiers
+ false, true);
planes_.push_back(std::move(plane));
}
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698