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

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

Issue 2789363004: ozone: Add KMS "rotation" property support. (Closed)
Patch Set: Check rotation AddProperty. Created 3 years, 8 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
Index: ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
index 17bdd2acf7df475c8e880ba41e1c08dbfa7b5771..a71335ec54cca6bb06b646d9248cb45f90723b51 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
@@ -46,7 +46,8 @@ bool HardwareDisplayPlaneManagerAtomic::Commit(
HardwareDisplayPlaneAtomic* atomic_plane =
static_cast<HardwareDisplayPlaneAtomic*>(plane);
atomic_plane->SetPlaneData(plane_list->atomic_property_set.get(), 0, 0,
- gfx::Rect(), gfx::Rect());
+ gfx::Rect(), gfx::Rect(),
+ gfx::OVERLAY_TRANSFORM_NONE);
}
}
@@ -98,9 +99,9 @@ bool HardwareDisplayPlaneManagerAtomic::SetPlaneData(
uint32_t framebuffer_id = overlay.z_order
? overlay.buffer->GetFramebufferId()
: overlay.buffer->GetOpaqueFramebufferId();
- if (!atomic_plane->SetPlaneData(plane_list->atomic_property_set.get(),
- crtc_id, framebuffer_id,
- overlay.display_bounds, src_rect)) {
+ if (!atomic_plane->SetPlaneData(
+ plane_list->atomic_property_set.get(), crtc_id, framebuffer_id,
+ overlay.display_bounds, src_rect, overlay.plane_transform)) {
LOG(ERROR) << "Failed to set plane properties";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698