diff options
Diffstat (limited to 'ui/ozone/platform/drm/gpu/drm_surface.cc')
-rw-r--r-- | ui/ozone/platform/drm/gpu/drm_surface.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ui/ozone/platform/drm/gpu/drm_surface.cc b/ui/ozone/platform/drm/gpu/drm_surface.cc index 466441e..0964c9e 100644 --- a/ui/ozone/platform/drm/gpu/drm_surface.cc +++ b/ui/ozone/platform/drm/gpu/drm_surface.cc @@ -65,16 +65,13 @@ void DrmSurface::ResizeCanvas(const gfx::Size& viewport_size) { void DrmSurface::PresentCanvas(const gfx::Rect& damage) { DCHECK(base::MessageLoopForUI::IsCurrent()); - HardwareDisplayController* controller = window_delegate_->GetController(); - if (!controller) - return; - DCHECK(buffers_[front_buffer_ ^ 1].get()); - controller->QueueOverlayPlane(OverlayPlane(buffers_[front_buffer_ ^ 1])); + window_delegate_->QueueOverlayPlane( + OverlayPlane(buffers_[front_buffer_ ^ 1])); UpdateNativeSurface(damage); - controller->SchedulePageFlip(false /* is_sync */, - base::Bind(&base::DoNothing)); + window_delegate_->SchedulePageFlip(false /* is_sync */, + base::Bind(&base::DoNothing)); // Update our front buffer pointer. front_buffer_ ^= 1; |