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 52095d5ef5641a39d434e847d1872be660a2fbeb..7547c3729cedbcc5a673ef5216605f2670eef9eb 100644 |
--- a/ui/ozone/platform/drm/gpu/hardware_display_controller.h |
+++ b/ui/ozone/platform/drm/gpu/hardware_display_controller.h |
@@ -90,6 +90,8 @@ class DrmDevice; |
class OZONE_EXPORT HardwareDisplayController |
: public base::SupportsWeakPtr<HardwareDisplayController>, |
public PageFlipObserver { |
+ typedef base::Callback<void(int)> PageFlipCallback; |
+ |
public: |
explicit HardwareDisplayController(scoped_ptr<CrtcController> controller); |
~HardwareDisplayController() override; |
@@ -122,7 +124,8 @@ class OZONE_EXPORT HardwareDisplayController |
// called again before the page flip occurrs. |
// |
// Returns true if the page flip was successfully registered, false otherwise. |
- bool SchedulePageFlip(bool is_sync, const base::Closure& callback); |
+ bool SchedulePageFlip(bool is_sync, const PageFlipCallback& callback); |
+ bool SchedulePageFlipWithoutCallback(bool is_sync); |
// Set the hardware cursor to show the contents of |surface|. |
bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer); |
@@ -169,12 +172,12 @@ class OZONE_EXPORT HardwareDisplayController |
struct PageFlipRequest { |
PageFlipRequest(const OverlayPlaneList& planes, |
bool is_sync, |
- const base::Closure& callback); |
+ const PageFlipCallback& callback); |
~PageFlipRequest(); |
OverlayPlaneList planes; |
bool is_sync; |
- base::Closure callback; |
+ PageFlipCallback callback; |
}; |
// Buffers need to be declared first so that they are destroyed last. Needed |