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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index f5760a6fdd2765fd8c5270a42fc3078ca052a60b..be109468cc4034d53d1e0e6df900c7172f131ec8 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -5,6 +5,7 @@
#include "content/browser/frame_host/render_widget_host_view_child_frame.h"
#include <algorithm>
+#include <utility>
#include <vector>
#include "build/build_config.h"
@@ -267,10 +268,8 @@ void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame(
// the embedder's renderer to be composited.
if (!frame->delegated_frame_data || !use_surfaces_) {
frame_connector_->ChildFrameCompositorFrameSwapped(
- output_surface_id,
- host_->GetProcess()->GetID(),
- host_->GetRoutingID(),
- frame.Pass());
+ output_surface_id, host_->GetProcess()->GetID(), host_->GetRoutingID(),
+ std::move(frame));
return;
}
@@ -320,7 +319,7 @@ void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame(
ack_pending_count_++;
// If this value grows very large, something is going wrong.
DCHECK_LT(ack_pending_count_, 1000U);
- surface_factory_->SubmitCompositorFrame(surface_id_, frame.Pass(),
+ surface_factory_->SubmitCompositorFrame(surface_id_, std::move(frame),
ack_callback);
}

Powered by Google App Engine
This is Rietveld 408576698