| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/ozone/platform/dri/gbm_surfaceless.h" | 5 #include "ui/ozone/platform/dri/gbm_surfaceless.h" |
| 6 | 6 |
| 7 #include "ui/ozone/platform/dri/dri_vsync_provider.h" | 7 #include "ui/ozone/platform/dri/dri_vsync_provider.h" |
| 8 #include "ui/ozone/platform/dri/dri_window_delegate.h" | 8 #include "ui/ozone/platform/dri/dri_window_delegate.h" |
| 9 #include "ui/ozone/platform/dri/gbm_buffer.h" | 9 #include "ui/ozone/platform/dri/gbm_buffer.h" |
| 10 #include "ui/ozone/platform/dri/hardware_display_controller.h" | 10 #include "ui/ozone/platform/dri/hardware_display_controller.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 HardwareDisplayController* controller = window_delegate_->GetController(); | 36 HardwareDisplayController* controller = window_delegate_->GetController(); |
| 37 if (!controller) { | 37 if (!controller) { |
| 38 callback.Run(); | 38 callback.Run(); |
| 39 return true; | 39 return true; |
| 40 } | 40 } |
| 41 | 41 |
| 42 return controller->SchedulePageFlip(callback); | 42 return controller->SchedulePageFlip(callback); |
| 43 } | 43 } |
| 44 | 44 |
| 45 scoped_ptr<gfx::VSyncProvider> GbmSurfaceless::CreateVSyncProvider() { | 45 scoped_ptr<gfx::VSyncProvider> GbmSurfaceless::CreateVSyncProvider() { |
| 46 return scoped_ptr<gfx::VSyncProvider>(new DriVSyncProvider(window_delegate_)); | 46 return make_scoped_ptr(new DriVSyncProvider(window_delegate_)); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace ui | 49 } // namespace ui |
| OLD | NEW |