| 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 674586d00c2cbd4309c79da86c40930dbe7b37a6..c9e1ba0d67022e0af4e845b41f0d2ba77e15df3a 100644
|
| --- a/ui/ozone/platform/dri/overlay_plane.cc
|
| +++ b/ui/ozone/platform/dri/overlay_plane.cc
|
| @@ -32,14 +32,15 @@
|
| }
|
|
|
| // 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];
|
| }
|
|
|
| - return nullptr;
|
| + NOTREACHED();
|
| + return overlays[0];
|
| }
|
|
|
| } // namespace ui
|
|
|