diff options
Diffstat (limited to 'ui/ozone/platform/drm/gpu/gbm_surface.cc')
-rw-r--r-- | ui/ozone/platform/drm/gpu/gbm_surface.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface.cc b/ui/ozone/platform/drm/gpu/gbm_surface.cc index 80c84f9..8b5b167 100644 --- a/ui/ozone/platform/drm/gpu/gbm_surface.cc +++ b/ui/ozone/platform/drm/gpu/gbm_surface.cc @@ -150,8 +150,7 @@ bool GbmSurface::OnSwapBuffersAsync(const SwapCompletionCallback& callback) { } // The primary buffer is a special case. - if (window_delegate_->GetController()) - window_delegate_->GetController()->QueueOverlayPlane(OverlayPlane(primary)); + window_delegate_->QueueOverlayPlane(OverlayPlane(primary)); if (!GbmSurfaceless::OnSwapBuffersAsync( base::Bind(&GbmSurface::OnSwapBuffersCallback, |