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

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

Issue 1423793003: Optimize plane usage when primary is obscured by Overlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check that primary and Overlay formats are same Created 5 years, 2 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 c7b93c990867984510a383f31af8cca7430a6705..33635f6d62107b12fee52c8d271c4aac5970bbb8 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
@@ -65,7 +65,6 @@ bool HardwareDisplayPlaneManagerAtomic::Commit(
} else {
plane_list->plane_list.swap(plane_list->old_plane_list);
}
- plane_list->plane_list.clear();
uint32_t flags = 0;
if (test_only) {
@@ -78,8 +77,11 @@ bool HardwareDisplayPlaneManagerAtomic::Commit(
crtcs.size(),
base::Bind(&AtomicPageFlipCallback, crtcs))) {
PLOG(ERROR) << "Failed to commit properties";
+ ResetCurrentPlaneList(plane_list);
return false;
}
+
+ plane_list->plane_list.clear();
plane_list->atomic_property_set.reset(drmModeAtomicAlloc());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698