Index: ui/ozone/platform/dri/overlay_plane.cc |
diff --git a/ui/ozone/platform/dri/overlay_plane.cc b/ui/ozone/platform/dri/overlay_plane.cc |
index c9e1ba0d67022e0af4e845b41f0d2ba77e15df3a..674586d00c2cbd4309c79da86c40930dbe7b37a6 100644 |
--- a/ui/ozone/platform/dri/overlay_plane.cc |
+++ b/ui/ozone/platform/dri/overlay_plane.cc |
@@ -32,15 +32,14 @@ OverlayPlane::~OverlayPlane() { |
} |
// static |
-const OverlayPlane& OverlayPlane::GetPrimaryPlane( |
+const OverlayPlane* OverlayPlane::GetPrimaryPlane( |
const OverlayPlaneList& overlays) { |
for (size_t i = 0; i < overlays.size(); ++i) { |
if (overlays[i].z_order == 0) |
- return overlays[i]; |
+ return &overlays[i]; |
} |
- NOTREACHED(); |
- return overlays[0]; |
+ return nullptr; |
} |
} // namespace ui |