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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread.cc

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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 9bd3555cd4842e2194d1c9f5ef91292f2872a170..bd362010a9fc115c05beebbbb41f4c6db51b8fa9 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -166,12 +166,12 @@ void DrmThread::GetScanoutFormats(
void DrmThread::SchedulePageFlip(gfx::AcceleratedWidget widget,
const std::vector<OverlayPlane>& planes,
- const SwapCompletionCallback& callback) {
+ SwapCompletionOnceCallback callback) {
DrmWindow* window = screen_manager_->GetWindow(widget);
if (window)
- window->SchedulePageFlip(planes, callback);
+ window->SchedulePageFlip(planes, std::move(callback));
else
- callback.Run(gfx::SwapResult::SWAP_ACK);
+ std::move(callback).Run(gfx::SwapResult::SWAP_ACK);
}
void DrmThread::GetVSyncParameters(
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698