Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_controller.h

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698