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

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

Issue 2886503002: Convert additional ozone/drm callbacks to OnceCallback (Closed)
Patch Set: 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/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 26cba17187bda348d51eba9be2c2640417841ea2..f30d578bd366d7bf3f537ec90977531a79a0713b 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -165,12 +165,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(

Powered by Google App Engine
This is Rietveld 408576698