Index: ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
index dff9e57ab2db56189536844eb3a4883808ca5de4..5e3f0a1f59b3d466b87b4827e8434b1c5ce6f1ea 100644 |
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane_manager_legacy.cc |
@@ -67,7 +67,7 @@ bool HardwareDisplayPlaneManagerLegacy::Commit( |
// For each element in |old_plane_list|, if it hasn't been reclaimed (by |
// this or any other HDPL), clear the overlay contents. |
for (HardwareDisplayPlane* plane : plane_list->old_plane_list) { |
- if (!plane->in_use() && !plane->is_dummy()) { |
+ if (!plane->in_use() && (plane->type() != HardwareDisplayPlane::kDummy)) { |
// This plane is being released, so we need to zero it. |
if (!drm_->PageFlipOverlay(plane->owning_crtc(), 0, gfx::Rect(), |
gfx::Rect(), plane->plane_id())) { |
@@ -91,7 +91,8 @@ bool HardwareDisplayPlaneManagerLegacy::SetPlaneData( |
uint32_t crtc_id, |
const gfx::Rect& src_rect, |
CrtcController* crtc) { |
- if (hw_plane->is_dummy() || plane_list->legacy_page_flips.empty() || |
+ if ((hw_plane->type() == HardwareDisplayPlane::kDummy) || |
+ plane_list->legacy_page_flips.empty() || |
plane_list->legacy_page_flips.back().crtc_id != crtc_id) { |
plane_list->legacy_page_flips.push_back( |
HardwareDisplayPlaneList::PageFlipInfo( |