diff options
Diffstat (limited to 'ui/ozone/platform/drm/gpu/gbm_surfaceless.cc')
-rw-r--r-- | ui/ozone/platform/drm/gpu/gbm_surfaceless.cc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc b/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc index 138d207..c906cfd 100644 --- a/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc +++ b/ui/ozone/platform/drm/gpu/gbm_surfaceless.cc @@ -34,23 +34,13 @@ bool GbmSurfaceless::ResizeNativeWindow(const gfx::Size& viewport_size) { } bool GbmSurfaceless::OnSwapBuffers() { - HardwareDisplayController* controller = window_delegate_->GetController(); - if (!controller) - return true; - - return controller->SchedulePageFlip(true /* is_sync */, - base::Bind(&base::DoNothing)); + return window_delegate_->SchedulePageFlip(true /* is_sync */, + base::Bind(&base::DoNothing)); } bool GbmSurfaceless::OnSwapBuffersAsync( const SwapCompletionCallback& callback) { - HardwareDisplayController* controller = window_delegate_->GetController(); - if (!controller) { - callback.Run(); - return true; - } - - return controller->SchedulePageFlip(false /* is_sync */, callback); + return window_delegate_->SchedulePageFlip(false /* is_sync */, callback); } scoped_ptr<gfx::VSyncProvider> GbmSurfaceless::CreateVSyncProvider() { |