| 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..31777d2c932e9608c903cf3b379c24f00444544c 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,8 +87,6 @@ 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;
|
| -
|
| public:
|
| HardwareDisplayController(std::unique_ptr<CrtcController> controller,
|
| const gfx::Point& origin);
|
| @@ -118,7 +117,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 +160,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_;
|
|
|