Index: ui/ozone/platform/dri/hardware_display_controller.cc |
diff --git a/ui/ozone/platform/dri/hardware_display_controller.cc b/ui/ozone/platform/dri/hardware_display_controller.cc |
index 7ba5201fd3c87e7c856740be558039458855bdf3..2c7523d3b5e16cbf47b1639ce6d6e984cc457d6c 100644 |
--- a/ui/ozone/platform/dri/hardware_display_controller.cc |
+++ b/ui/ozone/platform/dri/hardware_display_controller.cc |
@@ -74,11 +74,11 @@ bool HardwareDisplayController::Modeset(const OverlayPlane& primary, |
bool HardwareDisplayController::Enable() { |
TRACE_EVENT0("dri", "HDC::Enable"); |
DCHECK(!current_planes_.empty()); |
- OverlayPlane primary = OverlayPlane::GetPrimaryPlane(current_planes_); |
- DCHECK(primary.buffer.get()); |
+ const OverlayPlane* primary = OverlayPlane::GetPrimaryPlane(current_planes_); |
+ DCHECK(primary->buffer.get()); |
bool status = true; |
for (size_t i = 0; i < crtc_controllers_.size(); ++i) |
- status &= crtc_controllers_[i]->Modeset(primary, mode_); |
+ status &= crtc_controllers_[i]->Modeset(*primary, mode_); |
return status; |
} |