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

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

Issue 2576263002: ozone: Allocate scanout buffer according to KMS modifiers (Closed)
Patch Set: ozone: Allocate scanout buffer according to KMS modifiers 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/hardware_display_controller.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_controller.cc b/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
index c45ed81146759ef83c64fe507846e9ef399d2ea8..3f0db8d94f0670e1a3a691dc46a6c61868eee553 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_controller.cc
@@ -143,6 +143,16 @@ bool HardwareDisplayController::IsFormatSupported(uint32_t fourcc_format,
return true;
}
+uint32_t HardwareDisplayController::GetFormatModifiers(uint32_t format,
+ uint64_t *modifiers, uint32_t count) {
+ // TODO(hoegsberg): We need to intersect modifiers from different
+ // controllers here.
+ for (const auto& controller : crtc_controllers_)
+ count = controller->GetFormatModifiers(format, modifiers, count);
+
+ return count;
+}
+
bool HardwareDisplayController::SetCursor(
const scoped_refptr<ScanoutBuffer>& buffer) {
bool status = true;

Powered by Google App Engine
This is Rietveld 408576698