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

Unified Diff: ui/ozone/platform/drm/gpu/page_flip_request.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/page_flip_request.h
diff --git a/ui/ozone/platform/drm/gpu/page_flip_request.h b/ui/ozone/platform/drm/gpu/page_flip_request.h
index 09eb3050f7b53ac9523d9378e149677f8aa954db..b6febf13131a5b85fa40731f56f6f36faee48e7f 100644
--- a/ui/ozone/platform/drm/gpu/page_flip_request.h
+++ b/ui/ozone/platform/drm/gpu/page_flip_request.h
@@ -17,7 +17,7 @@ namespace ui {
class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
public:
- PageFlipRequest(int crtc_count, const SwapCompletionCallback& callback);
+ PageFlipRequest(int crtc_count, SwapCompletionOnceCallback callback);
void Signal(gfx::SwapResult result);
@@ -25,7 +25,7 @@ class PageFlipRequest : public base::RefCounted<PageFlipRequest> {
friend class base::RefCounted<PageFlipRequest>;
~PageFlipRequest();
- SwapCompletionCallback callback_;
+ SwapCompletionOnceCallback callback_;
int crtc_count_;
gfx::SwapResult result_ = gfx::SwapResult::SWAP_ACK;
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_controller.cc ('k') | ui/ozone/platform/drm/gpu/page_flip_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698