Chromium Code Reviews| Index: ui/ozone/platform/drm/gpu/hardware_display_controller.h |
| diff --git a/ui/ozone/platform/drm/gpu/hardware_display_controller.h b/ui/ozone/platform/drm/gpu/hardware_display_controller.h |
| index 1851ee4f489a623ccf28efe80091c5cda86318e5..822a97f9044507f56ebcbf9ddb4de39202555ab5 100644 |
| --- a/ui/ozone/platform/drm/gpu/hardware_display_controller.h |
| +++ b/ui/ozone/platform/drm/gpu/hardware_display_controller.h |
| @@ -20,6 +20,7 @@ |
| #include "ui/gfx/swap_result.h" |
| #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h" |
| #include "ui/ozone/platform/drm/gpu/overlay_plane.h" |
| +#include "ui/ozone/public/swap_completion_callback.h" |
| namespace gfx { |
| class Point; |
| @@ -86,7 +87,7 @@ class DrmDevice; |
| // framebuffers. Though, in this case, it would be possible to have all |
| // connectors active if some use the same CRTC to mirror the display. |
| class HardwareDisplayController { |
| - typedef base::Callback<void(gfx::SwapResult)> PageFlipCallback; |
| + // typedef base::Callback<void(gfx::SwapResult)> SwapCompletionOnceCallback; |
|
dnicoara
2017/05/15 20:22:14
nit: Delete line
|
| public: |
| HardwareDisplayController(std::unique_ptr<CrtcController> controller, |
| @@ -118,7 +119,7 @@ class HardwareDisplayController { |
| // Note that this function does not block. Also, this function should not be |
| // called again before the page flip occurrs. |
| void SchedulePageFlip(const OverlayPlaneList& plane_list, |
| - const PageFlipCallback& callback); |
| + SwapCompletionOnceCallback callback); |
| // Returns true if the page flip with the |plane_list| would succeed. This |
| // doesn't change any state. |
| @@ -161,7 +162,7 @@ class HardwareDisplayController { |
| private: |
| bool ActualSchedulePageFlip(const OverlayPlaneList& plane_list, |
| bool test_only, |
| - const PageFlipCallback& callback); |
| + SwapCompletionOnceCallback callback); |
| std::unordered_map<DrmDevice*, std::unique_ptr<HardwareDisplayPlaneList>> |
| owned_hardware_planes_; |