diff options
Diffstat (limited to 'ui/ozone/platform/drm/gbm_surface_factory.cc')
-rw-r--r-- | ui/ozone/platform/drm/gbm_surface_factory.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ui/ozone/platform/drm/gbm_surface_factory.cc b/ui/ozone/platform/drm/gbm_surface_factory.cc index 4c836ee..8ecf724 100644 --- a/ui/ozone/platform/drm/gbm_surface_factory.cc +++ b/ui/ozone/platform/drm/gbm_surface_factory.cc @@ -191,14 +191,9 @@ bool GbmSurfaceFactory::ScheduleOverlayPlane( LOG(ERROR) << "ScheduleOverlayPlane passed NULL buffer."; return false; } - HardwareDisplayController* hdc = - screen_manager_->GetWindow(widget)->GetController(); - if (!hdc) - return true; - - hdc->QueueOverlayPlane(OverlayPlane(pixmap->buffer(), plane_z_order, - plane_transform, display_bounds, - crop_rect)); + screen_manager_->GetWindow(widget)->QueueOverlayPlane( + OverlayPlane(pixmap->buffer(), plane_z_order, plane_transform, + display_bounds, crop_rect)); return true; } |