diff options
author | danakj <danakj@chromium.org> | 2015-11-18 12:39:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-18 20:39:58 +0000 |
commit | a04855af140e24ed3ec3f59da178837b3d32d9c4 (patch) | |
tree | a71f13ff7f62616eaf173d13861472f06a50fcf2 /cc/trees/latency_info_swap_promise_monitor.cc | |
parent | 904f19454a71c733205d9e68bc8faa93a6fdce3e (diff) | |
download | chromium_src-a04855af140e24ed3ec3f59da178837b3d32d9c4.zip chromium_src-a04855af140e24ed3ec3f59da178837b3d32d9c4.tar.gz chromium_src-a04855af140e24ed3ec3f59da178837b3d32d9c4.tar.bz2 |
cc: Replace Pass() with std::move() in some subdirs.
This hits the following:
cc/layers/
cc/output/
cc/quads/
cc/resources/
cc/scheduler/
cc/surfaces/
cc/trees/
R=enne, vmpstr
BUG=557422
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1455023002
Cr-Commit-Position: refs/heads/master@{#360405}
Diffstat (limited to 'cc/trees/latency_info_swap_promise_monitor.cc')
-rw-r--r-- | cc/trees/latency_info_swap_promise_monitor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/trees/latency_info_swap_promise_monitor.cc b/cc/trees/latency_info_swap_promise_monitor.cc index a57ae4c..9f2bc82 100644 --- a/cc/trees/latency_info_swap_promise_monitor.cc +++ b/cc/trees/latency_info_swap_promise_monitor.cc @@ -52,7 +52,7 @@ LatencyInfoSwapPromiseMonitor::~LatencyInfoSwapPromiseMonitor() { void LatencyInfoSwapPromiseMonitor::OnSetNeedsCommitOnMain() { if (AddRenderingScheduledComponent(latency_, true /* on_main */)) { scoped_ptr<SwapPromise> swap_promise(new LatencyInfoSwapPromise(*latency_)); - layer_tree_host_->QueueSwapPromise(swap_promise.Pass()); + layer_tree_host_->QueueSwapPromise(std::move(swap_promise)); } } @@ -64,7 +64,7 @@ void LatencyInfoSwapPromiseMonitor::OnSetNeedsRedrawOnImpl() { // promise is pinned so that it is not interrupted by new incoming // activations (which would otherwise break the swap promise). layer_tree_host_impl_->active_tree()->QueuePinnedSwapPromise( - swap_promise.Pass()); + std::move(swap_promise)); } } @@ -96,7 +96,7 @@ void LatencyInfoSwapPromiseMonitor::OnForwardScrollUpdateToMainThreadOnImpl() { scoped_ptr<SwapPromise> swap_promise( new LatencyInfoSwapPromise(new_latency)); layer_tree_host_impl_->QueueSwapPromiseForMainThreadScrollUpdate( - swap_promise.Pass()); + std::move(swap_promise)); } } |