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

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

Issue 1147553003: ozone: Add atomic initialization path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove flag for now Created 5 years, 7 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.cc
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
index ea21a9a208f649f743f626bfe46cc0668e565756..d64b8a53db337876a0de90b8333164d518998e6b 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager.cc
@@ -25,7 +25,11 @@ const float kFixedPointScaleValue = 65536.0f;
} // namespace
HardwareDisplayPlaneList::HardwareDisplayPlaneList() : committed(false) {
+#if defined(USE_DRM_ATOMIC)
+ atomic_property_set.reset(drmModePropertySetAlloc());
+#endif // defined(USE_DRM_ATOMIC)
}
+
HardwareDisplayPlaneList::~HardwareDisplayPlaneList() {
for (auto* plane : plane_list) {
plane->set_in_use(false);

Powered by Google App Engine
This is Rietveld 408576698