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

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

Issue 2886503002: Convert additional ozone/drm callbacks to OnceCallback (Closed)
Patch Set: fixed nit Created 3 years, 7 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 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_;
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window_proxy.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698